mirror of https://github.com/ArduPilot/ardupilot
Plane: GCS move airspeed sensor status flags up
This commit is contained in:
parent
9a3fed0263
commit
6dc5a9fc54
|
@ -8,18 +8,6 @@ uint8_t GCS_Plane::sysid_this_mav() const
|
|||
|
||||
void GCS_Plane::update_vehicle_sensor_status_flags(void)
|
||||
{
|
||||
// airspeed
|
||||
const AP_Airspeed *airspeed = AP_Airspeed::get_singleton();
|
||||
if (airspeed && airspeed->enabled()) {
|
||||
control_sensors_present |= MAV_SYS_STATUS_SENSOR_DIFFERENTIAL_PRESSURE;
|
||||
}
|
||||
if (airspeed && airspeed->enabled() && airspeed->use()) {
|
||||
control_sensors_enabled |= MAV_SYS_STATUS_SENSOR_DIFFERENTIAL_PRESSURE;
|
||||
}
|
||||
if (airspeed && airspeed->all_healthy()) {
|
||||
control_sensors_health |= MAV_SYS_STATUS_SENSOR_DIFFERENTIAL_PRESSURE;
|
||||
}
|
||||
|
||||
// reverse thrust
|
||||
if (plane.have_reverse_thrust()) {
|
||||
control_sensors_present |= MAV_SYS_STATUS_REVERSE_MOTOR;
|
||||
|
|
Loading…
Reference in New Issue