|
|
|
@ -1,5 +1,6 @@
@@ -1,5 +1,6 @@
|
|
|
|
|
#include "GCS.h" |
|
|
|
|
|
|
|
|
|
#include <AC_Fence/AC_Fence.h> |
|
|
|
|
#include <AP_BoardConfig/AP_BoardConfig.h> |
|
|
|
|
#include <AP_Logger/AP_Logger.h> |
|
|
|
|
#include <AP_BattMonitor/AP_BattMonitor.h> |
|
|
|
@ -177,6 +178,19 @@ void GCS::update_sensor_status_flags()
@@ -177,6 +178,19 @@ void GCS::update_sensor_status_flags()
|
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
const AC_Fence *fence = AP::fence(); |
|
|
|
|
if (fence != nullptr) { |
|
|
|
|
if (fence->sys_status_enabled()) { |
|
|
|
|
control_sensors_enabled |= MAV_SYS_STATUS_GEOFENCE; |
|
|
|
|
} |
|
|
|
|
if (fence->sys_status_present()) { |
|
|
|
|
control_sensors_present |= MAV_SYS_STATUS_GEOFENCE; |
|
|
|
|
} |
|
|
|
|
if (!fence->sys_status_failed()) { |
|
|
|
|
control_sensors_health |= MAV_SYS_STATUS_GEOFENCE; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
update_vehicle_sensor_status_flags(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|