ArduPlane: move RC bits in mavlink to common code

Plane's semantics change to be like Copter. Rover, Sub and Tracker will start reporting the bits
This commit is contained in:
Peter Barker 2024-02-07 15:14:28 +11:00 committed by Peter Barker
parent d462756cbc
commit 04fab27136
1 changed files with 0 additions and 7 deletions

View File

@ -98,13 +98,6 @@ void GCS_Plane::update_vehicle_sensor_status_flags(void)
control_sensors_health |= MAV_SYS_STATUS_SENSOR_ATTITUDE_STABILIZATION;
}
control_sensors_present |= MAV_SYS_STATUS_SENSOR_RC_RECEIVER;
control_sensors_enabled |= MAV_SYS_STATUS_SENSOR_RC_RECEIVER;
uint32_t last_valid = plane.failsafe.last_valid_rc_ms;
if (millis() - last_valid < 200) {
control_sensors_health |= MAV_SYS_STATUS_SENSOR_RC_RECEIVER;
}
#if AP_TERRAIN_AVAILABLE
switch (plane.terrain.status()) {
case AP_Terrain::TerrainStatusDisabled: