Copter: rename sys_status methods from geofence_ to sys_status_

This commit is contained in:
Peter Barker 2017-12-27 15:31:49 +11:00 committed by Francisco Ferreira
parent e30a6bbce3
commit 6bcdab55d0

View File

@ -347,7 +347,7 @@ void Copter::update_sensor_status_flags(void)
control_sensors_present |= MAV_SYS_STATUS_SENSOR_BATTERY;
}
#if AC_FENCE == ENABLED
if (copter.fence.geofence_present()) {
if (copter.fence.sys_status_present()) {
control_sensors_present |= MAV_SYS_STATUS_GEOFENCE;
}
#endif
@ -399,7 +399,7 @@ void Copter::update_sensor_status_flags(void)
control_sensors_enabled |= MAV_SYS_STATUS_SENSOR_BATTERY;
}
#if AC_FENCE == ENABLED
if (copter.fence.geofence_enabled()) {
if (copter.fence.sys_status_enabled()) {
control_sensors_enabled |= MAV_SYS_STATUS_GEOFENCE;
}
#endif
@ -493,7 +493,7 @@ void Copter::update_sensor_status_flags(void)
if (copter.failsafe.battery) {
control_sensors_health &= ~MAV_SYS_STATUS_SENSOR_BATTERY; }
#if AC_FENCE == ENABLED
if (copter.fence.geofence_failed()) {
if (copter.fence.sys_status_failed()) {
control_sensors_health &= ~MAV_SYS_STATUS_GEOFENCE;
}
#endif