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:
parent
d462756cbc
commit
04fab27136
@ -98,13 +98,6 @@ void GCS_Plane::update_vehicle_sensor_status_flags(void)
|
|||||||
control_sensors_health |= MAV_SYS_STATUS_SENSOR_ATTITUDE_STABILIZATION;
|
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
|
#if AP_TERRAIN_AVAILABLE
|
||||||
switch (plane.terrain.status()) {
|
switch (plane.terrain.status()) {
|
||||||
case AP_Terrain::TerrainStatusDisabled:
|
case AP_Terrain::TerrainStatusDisabled:
|
||||||
|
Loading…
Reference in New Issue
Block a user