Plane: GCS move airspeed sensor status flags up

This commit is contained in:
Josh Henderson 2021-09-30 18:37:02 -04:00 committed by Andrew Tridgell
parent 9a3fed0263
commit 6dc5a9fc54
1 changed files with 0 additions and 12 deletions

View File

@ -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;