Example #1
0
static inline void on_mag_event(void)
{
#if USE_MAGNETOMETER
  ImuScaleMag(imu);
  if (ahrs.status == AHRS_RUNNING) {
    ahrs_update_mag();
  }
#endif
}
Example #2
0
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
}