A while ago I posted about running the official PX4 firmware on an emulated Pixhawk 4 (STM32F765) coupled with a physics-simulated drone. Back then it wasn't released. It is now — and it's packaged so you can try it on your own PC.
Video (5 min, English captions): https://www.youtube.com/watch?v=XWAsmVYS8bM
What you can do
- Run the official PX4 v1.17.0 firmware, unmodified, on the emulated board. PX4's own drivers read emulated IMU, baro, mag and GPS chips.
- Fly the x500 from the browser (Athrill Studio): take off, hold, land.
- Click a route on the map, plan "stop motor 3 at point 2" (or click Stop during the flight). The motor stops inside the emulated DShot ESC, and PX4 detects it from its own ESC telemetry ("Motor failure detected").
How to run it
One repository sets everything up from an empty folder: no sudo, nothing installed outside that folder, every part pinned and SHA-256 checked. It runs on an Apple silicon Mac or Windows 11 with WSL2. No hardware, no GPU, free.
Not yet
- No hardware-accuracy claim: it's a light emulator, faithful at the RTOS/driver level, not cycle-accurate.
- One board (Pixhawk 4) and one firmware set (PX4) for now.
- Faults other than a stopped motor.
Code
- Athrill Studio (start here — "Try it on your PC"): https://github.com/hakoniwalab/athrill-studio
- Hakoniwa Business Pack (the one-folder setup): https://github.com/hakoniwalab/hakoniwa-business-pack
Feedback welcome — especially which faults or boards you'd want next.