|
|
|
@ -34,7 +34,7 @@ void GCS_Copter::update_vehicle_sensor_status_flags(void)
@@ -34,7 +34,7 @@ void GCS_Copter::update_vehicle_sensor_status_flags(void)
|
|
|
|
|
MAV_SYS_STATUS_SENSOR_ATTITUDE_STABILIZATION | |
|
|
|
|
MAV_SYS_STATUS_SENSOR_YAW_POSITION; |
|
|
|
|
|
|
|
|
|
if (copter.g.compass_enabled) { |
|
|
|
|
if (AP::compass().enabled()) { |
|
|
|
|
control_sensors_present |= MAV_SYS_STATUS_SENSOR_3D_MAG; |
|
|
|
|
control_sensors_enabled |= MAV_SYS_STATUS_SENSOR_3D_MAG; |
|
|
|
|
} |
|
|
|
@ -129,7 +129,7 @@ void GCS_Copter::update_vehicle_sensor_status_flags(void)
@@ -129,7 +129,7 @@ void GCS_Copter::update_vehicle_sensor_status_flags(void)
|
|
|
|
|
|
|
|
|
|
AP_AHRS &ahrs = AP::ahrs(); |
|
|
|
|
const Compass &compass = AP::compass(); |
|
|
|
|
if (copter.g.compass_enabled && compass.healthy() && ahrs.use_compass()) { |
|
|
|
|
if (compass.enabled() && compass.healthy() && ahrs.use_compass()) { |
|
|
|
|
control_sensors_health |= MAV_SYS_STATUS_SENSOR_3D_MAG; |
|
|
|
|
} |
|
|
|
|
if (gps.is_healthy()) { |
|
|
|
|