Skip to content

Commit 4b1dd99

Browse files
committed
GCS_MAVLink: correct use of AHRS_EKF_TYPE value rather than canonicalised type
1 parent 1d6da2c commit 4b1dd99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/GCS_MAVLink/GCS.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ void GCS::update_sensor_status_flags()
535535
#endif
536536

537537
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL && AP_AHRS_ENABLED
538-
if (ahrs.ekf_type_parameter_value() == 10) {
538+
if (ahrs.configured_ekf_type() == AP_AHRS::EKFType::SIM) {
539539
// always show EKF type 10 as healthy. This prevents spurious error
540540
// messages in xplane and other simulators that use EKF type 10
541541
control_sensors_health |= MAV_SYS_STATUS_AHRS | MAV_SYS_STATUS_SENSOR_GPS | MAV_SYS_STATUS_SENSOR_3D_ACCEL | MAV_SYS_STATUS_SENSOR_3D_GYRO;

0 commit comments

Comments
 (0)