|
|
|
@ -2290,4 +2290,15 @@ bool AP_AHRS_NavEKF::is_ext_nav_used_for_yaw(void) const
@@ -2290,4 +2290,15 @@ bool AP_AHRS_NavEKF::is_ext_nav_used_for_yaw(void) const
|
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// set and save the alt noise parameter value
|
|
|
|
|
void AP_AHRS_NavEKF::set_alt_measurement_noise(float noise) |
|
|
|
|
{ |
|
|
|
|
#if HAL_NAVEKF2_AVAILABLE |
|
|
|
|
EKF2.set_baro_alt_noise(noise); |
|
|
|
|
#endif |
|
|
|
|
#if HAL_NAVEKF3_AVAILABLE |
|
|
|
|
EKF3.set_baro_alt_noise(noise); |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#endif // AP_AHRS_NAVEKF_AVAILABLE
|
|
|
|
|