mirror of https://github.com/ArduPilot/ardupilot
Plane: check all airspeed sensors are healthy
This commit is contained in:
parent
5229fbd854
commit
7da569c395
|
@ -320,7 +320,7 @@ void Plane::update_sensor_status_flags(void)
|
||||||
if (!ins.get_accel_health_all()) {
|
if (!ins.get_accel_health_all()) {
|
||||||
control_sensors_health &= ~MAV_SYS_STATUS_SENSOR_3D_ACCEL;
|
control_sensors_health &= ~MAV_SYS_STATUS_SENSOR_3D_ACCEL;
|
||||||
}
|
}
|
||||||
if (airspeed.healthy()) {
|
if (airspeed.all_healthy()) {
|
||||||
control_sensors_health |= MAV_SYS_STATUS_SENSOR_DIFFERENTIAL_PRESSURE;
|
control_sensors_health |= MAV_SYS_STATUS_SENSOR_DIFFERENTIAL_PRESSURE;
|
||||||
}
|
}
|
||||||
#if GEOFENCE_ENABLED
|
#if GEOFENCE_ENABLED
|
||||||
|
|
Loading…
Reference in New Issue