mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
Copter: rename sys_status methods from geofence_ to sys_status_
This commit is contained in:
parent
e30a6bbce3
commit
6bcdab55d0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user