STM32 flight control