Embedded flight control firmware for high-powered rockets, using embassy on STM32H743VI. Speaks MAVLink.
Run the code (or as much as possible of it) on a regular (Linux for now) system:
just sitl-hybrid
This will attempt to run sitl/tap.sh which uses sudo, so it may prompt for your password. This is required for an initial setup of a tuntap virtual network interface for the simulated firmware to use.
Once running, the SITL binary will broadcast MAVLink packets just like the firmware and you can use any MAVLink ground station software running on the same system and listening on UDP port 14550 to control it.
In the SITL, sensor values are simulated and the rocket flies a simple simulated trajectory (ignition is 5s after entering Armed mode).
In addition to the other requirements, you need:
- The correct target for Rust:
rustup target add thumbv7em-none-eabihf probe-rs
To build and flash the firmware, run:
just flash-hybridfor the FC firmwarejust flash-gcsfor the GCS firmwarejust flash-selftestfor a hardware self-test firmware