How ebner62/metal_hawk2a_embedded works
This is embedded flight software for an autonomous CanSat glider. The principal workflow is sensor and ground-station input into the flight loop, which advances flight states, logs and downlinks telemetry, and coordinates guidance, release, and steering actions. Navigation.h implements path geometry and steering calculations; the README documents the broader flight capabilities. The main sketch was not excerpted, so its internal wiring is represented only where the README explicitly describes it.
Main entry points: Metal_Hawk2a_Embedded.ino Flight Loop · Navigation.h Steering Control
Components 16
Flight Control
- Flight Loop
Metal_Hawk2a_Embedded.ino - Flight State Machine
Metal_Hawk2a_Embedded.ino - Flight Stages
Metal_Hawk2a_Embedded.ino
Sensing and Telemetry
- Sensor Updates
Metal_Hawk2a_Embedded.ino - Telemetry Downlink
Metal_Hawk2a_Embedded.ino - Command Handling
Metal_Hawk2a_Embedded.ino
Guidance and Actuation
- Navigation Geometry
Navigation.h - Path Planning
Navigation.h - Steering Control
Navigation.h - Flight Servos
Metal_Hawk2a_Embedded.ino - Payload Release
Metal_Hawk2a_Embedded.ino - Camera Triggers
Metal_Hawk2a_Embedded.ino
Storage and Recovery
- Flight Storage
Metal_Hawk2a_Embedded.ino - State Restoration
Metal_Hawk2a_Embedded.ino
Other components
- Ground Station
- Flight Sensors
Connections 19
- Flight Sensors → Flight Loop: sensor input
README.md - Ground Station → Command Handling: sends commands
README.md - Command Handling → Flight Loop: command input
README.md - Flight Loop → Sensor Updates: updates sensors
README.md - Sensor Updates → Flight Loop: provides readings
README.md - Flight Loop → Flight State Machine: advances states
README.md - Flight State Machine → Flight Stages: governs stages
README.md - Flight Loop → Telemetry Downlink: sends telemetry
README.md - Telemetry Downlink → Ground Station: serial downlink
README.md - Flight Loop → Flight Storage: logs flight data
README.md - Flight Loop → State Restoration: persists state
README.md - State Restoration → Flight Storage: uses EEPROM and SD
README.md - Flight Loop → Navigation Geometry: uses navigation math
README.md - Navigation Geometry → Path Planning: computes paths
Navigation.h - Path Planning → Steering Control: provides targets
Navigation.h - Flight Loop → Steering Control: adjusts guidance
README.md - Steering Control → Flight Servos: controls surfaces
README.md - Flight Loop → Payload Release: triggers deployment
README.md - Flight Loop → Camera Triggers: triggers cameras
README.md