How gt-space/luna works
Main System Components
a) Flight Control System
• Switchboard system (commander, worker, defibrillator, lifetime)
• State management and handlers
b) Hardware Interface Layer
• 'ahrs' (Attitude and Heading Reference System)
• 'sam' (Sensor and Actuator Management)
• 'tel' (Telemetry system with SX1280 radio interface)
c) Ground Control System
• 'gui' component with its major subsystems:
• Sensor monitoring
• Valve control
• Sequence management
• Plotting/visualization
• AVI launcher
d) Data Management
• 'servo' component (database and API server)
• Database migrations and routes
Component Relationships
a) Data Flow
• Telemetry data flow from hardware sensors → flight control → ground control
• Command flow from ground control → flight control → hardware actuators
• Database interactions between servo and other components
b) Communication Protocols
• Common communication interfaces defined in the 'common' crate
• Different message types (flight, gui, sam)
Specific Implementation Details
Technical details:
a) Frontend (GUI):
• Tauri-based desktop application
• React/TypeScript implementation
• Multiple specialized views (sensors, sequences, valves, etc.)
b) Backend Services:
• Rust-based implementation
• RESTful API endpoints
• Database migrations and management
c) Hardware Communication:
• GPIO interfaces
• SX1280 radio communication
• ADC and sensor interfaces
Critical Flows to Highlight
Key interactions:
• Command and control flow from GUI to flight systems
• Telemetry data flow from sensors to display
• State management and synchronization
• Emergency/failure handling paths