-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdev-config.toml
More file actions
68 lines (56 loc) · 2.44 KB
/
dev-config.toml
File metadata and controls
68 lines (56 loc) · 2.44 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# DEV MODE CONFIGURATION FILE
# This configuration enables dev mode for easier local development
# Dev mode uses a UDP server instead of packet sniffing, removing the need for sudo
# <-- CHECKLIST -->
# 1. Check that all the boards you want to use are declared in the [vehicle] section
# 2. Set the branch you want to use for the ADJ configuration
# 3. Toggle the Fault Propagation to your needs (true/false)
# 4. Check the TCP configuration and make sure to use the needed Keep Alive settings
# Control Station general configuration
# Vehicle Configuration
[vehicle]
boards = ["HVSCU", "HVSCU-Cabinet", "PCU", "LCU", "BCU", "BMSL"]
# ADJ (Architecture Description JSON) Configuration
[adj]
branch = "software" # Leave blank when using ADJ as a submodule (like this: "")
validate = true # Execute ADJ validator before starting backend
# Transport Configuration
[transport]
propagate_fault = false
# TCP Configuration
# These settings control how the backend reconnects to boards when connections are lost
[tcp]
backoff_min_ms = 999999 # Minimum backoff duration in milliseconds
backoff_max_ms = 999999 # Maximum backoff duration in milliseconds
backoff_multiplier = 1 # Exponential backoff multiplier (e.g., 1.5 means each retry waits 1.5x longer)
max_retries = 0 # Maximum retries before cycling (0 = infinite retries, recommended for persistent reconnection)
connection_timeout_ms = 999999 # Timeout for the initial connection attempt
keep_alive_ms = 0 # Keep-alive interval in milliseconds (0 to disable)
# UDP Configuration
# These settings control the UDP server's buffer sizes and performance characteristics
[udp]
ring_buffer_size = 64 # Size of the ring buffer for incoming packets (number of packets, not bytes)
packet_chan_size = 16 # Size of the channel buffer
# Server Configuration
[server.ethernet-view]
address = "127.0.0.1:4040"
static = "./ethernet-view"
[server.ethernet-view.endpoints]
pod_data = "/podDataStructure"
order_data = "/orderStructures"
programable_boards = "/uploadableBoards"
connections = "/backend"
files = "/"
[server.control-station]
address = "127.0.0.1:4000"
static = "./control-station"
[server.control-station.endpoints]
pod_data = "/podDataStructure"
order_data = "/orderStructures"
programable_boards = "/uploadableBoards"
connections = "/backend"
files = "/"
# Logging Configuration
[logging]
time_unit = "us" # Time unit for log timestamps (ns, us, ms, s)
logging_path = "."