mirror of https://github.com/ArduPilot/ardupilot
Copter: Report MAV_SYS_STATUS_SENSOR_Z_ALTITUDE_CONTROL and MAV_SYS_STATUS_SENSOR_XY_POSITION_CONTROL as healthy if the flight mode says so.
Brings it up to the Sub and Plane status
This commit is contained in:
parent
fd125fef1f
commit
ec2841d54a
|
@ -93,7 +93,9 @@ void GCS_Copter::update_vehicle_sensor_status_flags(void)
|
||||||
case Mode::Number::THROW:
|
case Mode::Number::THROW:
|
||||||
case Mode::Number::SMART_RTL:
|
case Mode::Number::SMART_RTL:
|
||||||
control_sensors_enabled |= MAV_SYS_STATUS_SENSOR_Z_ALTITUDE_CONTROL;
|
control_sensors_enabled |= MAV_SYS_STATUS_SENSOR_Z_ALTITUDE_CONTROL;
|
||||||
|
control_sensors_health |= MAV_SYS_STATUS_SENSOR_Z_ALTITUDE_CONTROL;
|
||||||
control_sensors_enabled |= MAV_SYS_STATUS_SENSOR_XY_POSITION_CONTROL;
|
control_sensors_enabled |= MAV_SYS_STATUS_SENSOR_XY_POSITION_CONTROL;
|
||||||
|
control_sensors_health |= MAV_SYS_STATUS_SENSOR_XY_POSITION_CONTROL;
|
||||||
break;
|
break;
|
||||||
case Mode::Number::ALT_HOLD:
|
case Mode::Number::ALT_HOLD:
|
||||||
case Mode::Number::GUIDED_NOGPS:
|
case Mode::Number::GUIDED_NOGPS:
|
||||||
|
@ -101,6 +103,7 @@ void GCS_Copter::update_vehicle_sensor_status_flags(void)
|
||||||
case Mode::Number::AUTOTUNE:
|
case Mode::Number::AUTOTUNE:
|
||||||
case Mode::Number::FLOWHOLD:
|
case Mode::Number::FLOWHOLD:
|
||||||
control_sensors_enabled |= MAV_SYS_STATUS_SENSOR_Z_ALTITUDE_CONTROL;
|
control_sensors_enabled |= MAV_SYS_STATUS_SENSOR_Z_ALTITUDE_CONTROL;
|
||||||
|
control_sensors_health |= MAV_SYS_STATUS_SENSOR_Z_ALTITUDE_CONTROL;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
// stabilize, acro, drift, and flip have no automatic x,y or z control (i.e. all manual)
|
// stabilize, acro, drift, and flip have no automatic x,y or z control (i.e. all manual)
|
||||||
|
|
Loading…
Reference in New Issue