STATIC_INLINE void main_event(void) { /* event functions for mcu peripherals: i2c, usb_serial.. */ mcu_event(); DatalinkEvent(); if (autopilot_rc) { RadioControlEvent(autopilot_on_rc_frame); } #if USE_IMU ImuEvent(); #endif #ifdef InsEvent TODO("calling InsEvent, remove me..") InsEvent(); #endif #if USE_BARO_BOARD BaroEvent(); #endif #if USE_GPS GpsEvent(); #endif #if FAILSAFE_GROUND_DETECT || KILL_ON_GROUND_DETECT DetectGroundEvent(); #endif modules_event_task(); }
STATIC_INLINE void main_event(void) { /* event functions for mcu peripherals: i2c, usb_serial.. */ mcu_event(); if (autopilot_rc) { RadioControlEvent(autopilot_on_rc_frame); } #if USE_BARO_BOARD BaroEvent(); #endif #if FAILSAFE_GROUND_DETECT || KILL_ON_GROUND_DETECT DetectGroundEvent(); #endif modules_event_task(); }