This video shows a test of the new Haskell-based version of the Hackflight flight-control firmware. By using the Haskell Copilot library, I was able to translate nearly all the Hacfklight C++ code into Haskell, enabling a much simpler, more elegant, and type-safe implementation of the basic flight-control algorithms. The Copilot library compiles the Haskell code to constant-size C code suitable for running on a flight controller like the STM32L4 Ladybug Flight Controller flying the Syma X5C copter shown in the video.
Code: https://github.com/simondlevy/Hackflight
Code: https://github.com/simondlevy/Hackflight
- Kategorie
- RC Vrtulníky
Komentáře