static inline void on_mag_event(void) { #if USE_MAGNETOMETER ImuScaleMag(imu); if (ahrs.status == AHRS_RUNNING) { ahrs_update_mag(); } #endif }
static inline void on_mag_event(void) { #ifdef IMU_MAG_X_SIGN ImuScaleMag(imu); if (ahrs.status == AHRS_RUNNING) { ahrs_update_mag(); // ahrs_update_fw_estimator(); } #endif }