|
|
|
@ -8,18 +8,6 @@ uint8_t GCS_Plane::sysid_this_mav() const
@@ -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; |
|
|
|
|