Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions backend/cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,17 @@ type Transport struct {
PropagateFault bool
}

type Blcu struct {
IP string
DownloadOrderId uint16
UploadOrderId uint16
}

type Config struct {
Vehicle vehicle.Config
Server server.Config
Adj Adj
Network Network
Transport Transport
Blcu Blcu
}
31 changes: 26 additions & 5 deletions backend/cmd/config.toml
Original file line number Diff line number Diff line change
@@ -1,27 +1,48 @@
# Hyperloop UPV Backend Configuration
# Configuration file for the H10 Control Station backend server

# Vehicle Configuration
[vehicle]
boards = ["HVSCU", "PCU"]
boards = ["HVSCU", "PCU", "BLCU"]

# BLCU (Boot Loader Control Unit) Configuration
[blcu]
ip = "127.0.0.1" # TFTP server IP address
download_order_id = 1 # Packet ID for download orders (0 = use default)
upload_order_id = 2 # Packet ID for upload orders (0 = use default)

# 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 = "/"

# ADJ (Architecture Description JSON) Configuration
[adj]
branch = "main" # Leave blank when using ADJ as a submodule (like this: "")
test = true
branch = "software" # Leave blank when using ADJ as a submodule (like this: "")
test = true # Enable test mode

# Network Configuration
[network]
manual = false
manual = true # Manual network device selection

# Transport Configuration
[transport]
propagate_fault = true
propagate_fault = true # Propagate fault messages like VCU
Loading