Backend — Commands
Location: src-tauri/src/commands/
Tauri commands are Rust functions exposed to the frontend via invoke. All commands are registered in and live in the module. Each page below covers one file.
rover_state.rs — Rover Mode State
The state described here MIGHT be subject to change Manages the three global boolean flags that t...
file_management.rs — Persistent File Storage
Handles all file I/O for the application. Files are stored inside Tauri's app_data_dir, which is ...
gstreamer.rs — Video Streaming
Receives H.264 video from the rover over UDP, decodes it, and serves it as MJPEG over HTTP so the...
network.rs — UDP & Dummy Simulator
This file is work in progress Exposes commands related to the UDP connection and the development ...
controller.rs — Gamepad Input
Runs a background listener for gamepad input using the gilrs library, translating button and axis...
checks.rs — Diagnostics
Two utility commands for diagnostics and maintenance. ping() Prints "PING FROM RUST" to the conso...
load_model.rs — 3D Model Loading
Handles loading of 3D model files bundled with the application. load_model(path) → Vec<u8> Reads ...
rover_commands.rs — Rover Science Commands
This file is work in progress These commands are called by the frontend to request measurements o...
map_commands.rs and map_processor.rs — 3D Map Rendering & Coordinate Transforms
map_processor.rs + map_commands.rs — 3D Map Rendering & Coordinate Transforms Converts 3D map fil...