mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-12 02:44:00 -04:00
AP_AHRS: added GPS disable for EKF3 switch
This commit is contained in:
parent
3ec68a9c0a
commit
66eee5103a
@ -3629,6 +3629,14 @@ float AP_AHRS::get_air_density_ratio(void) const
|
||||
return 1.0 / sq(eas2tas);
|
||||
}
|
||||
|
||||
#if HAL_NAVEKF3_AVAILABLE
|
||||
// AUX switch support for disabling GPS only in EKF3
|
||||
void AP_AHRS::gps_disable_ek3(bool gps_disable)
|
||||
{
|
||||
EKF3.force_gps_disable(gps_disable);
|
||||
}
|
||||
#endif
|
||||
|
||||
// singleton instance
|
||||
AP_AHRS *AP_AHRS::_singleton;
|
||||
|
||||
|
@ -683,6 +683,9 @@ public:
|
||||
// get access to an EKFGSF_yaw estimator
|
||||
const EKFGSF_yaw *get_yaw_estimator(void) const;
|
||||
|
||||
// AUX switch support for disabling GPS only in EKF3
|
||||
void gps_disable_ek3(bool gps_disable);
|
||||
|
||||
private:
|
||||
|
||||
// roll/pitch/yaw euler angles, all in radians
|
||||
|
Loading…
Reference in New Issue
Block a user