forked from AY2425S2-CG4002-Team-8/External-comms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
44 lines (37 loc) · 1.14 KB
/
config.py
File metadata and controls
44 lines (37 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Socket Configuration
SECRET_KEY="8888888888888888"
HOST="127.0.0.1"
ALL_INTERFACE=""
RELAY_SERVER_HOST_NAME="makerslab-fpga-25.d2.comp.nus.edu.sg"
RELAY_SERVER_PORT=8080
#U96 Configuration
U96_PORT=8888
U96_HOST_NAME="makerslab-fpga-25.d2.comp.nus.edu.sg"
U96_USER="xilinx"
U96_PASSWORD="b08password"
# MQTT Configuration
MQTT_HOST="175.41.155.178"
MQTT_PORT=4100
ACTION_TOPIC="GE/Vis/actions"
CONNECTION_TOPIC="GE/Vis/connections"
COOLDOWN_TOPIC="GE/Vis/cooldown"
SIGHT_TOPIC_1="Vis/GE/sight/1"
SIGHT_TOPIC_2="Vis/GE/sight/2"
GE_SIGHT_TOPIC="GE/Vis/sight"
SEND_TOPICS = [(ACTION_TOPIC, 0), (CONNECTION_TOPIC, 0), (COOLDOWN_TOPIC, 0), (GE_SIGHT_TOPIC, 2)]
READ_TOPICS = [(SIGHT_TOPIC_1, 2), (SIGHT_TOPIC_2, 2)]
MQTT_BASE_RECONNECT_DELAY=1
MQTT_MAX_RECONNECT_DELAY=60
MQTT_MAX_RECONNECT_ATTEMPTS=10
# AI configuration
AI_PACKET_TIMEOUT = 0.8
AI_MINIMUM_PACKETS = 21
AI_READ_BUFFER_MAX_SIZE = 35
AI_ROUND_TIMEOUT = 3
GOOGLE_DRIVE_FOLDER_ID = "1eWPwSNn31Q2GlSgGBBf0jjyjOGKcb0DS"
SERVICE_ACCOUNT_FILE = "/home/xilinx/capstone/credentials/googlecreds.json"
# Action Configuration
ACTION_AVALANCHE = "avalanche"
GUN_TIMEOUT = 0.2
# GE Configuration
EVENT_TIMEOUT=75