diff --git a/ArduCopter/GCS_Copter.cpp b/ArduCopter/GCS_Copter.cpp index 9fb7506c3b..5f9a79afe2 100644 --- a/ArduCopter/GCS_Copter.cpp +++ b/ArduCopter/GCS_Copter.cpp @@ -70,11 +70,6 @@ void GCS_Copter::update_vehicle_sensor_status_flags(void) control_sensors_present |= MAV_SYS_STATUS_SENSOR_PROXIMITY; } #endif -#if AC_FENCE == ENABLED - if (copter.fence.sys_status_present()) { - control_sensors_present |= MAV_SYS_STATUS_GEOFENCE; - } -#endif #if RANGEFINDER_ENABLED == ENABLED const RangeFinder *rangefinder = RangeFinder::get_singleton(); if (rangefinder && rangefinder->has_orientation(ROTATION_PITCH_270)) { @@ -112,11 +107,6 @@ void GCS_Copter::update_vehicle_sensor_status_flags(void) break; } -#if AC_FENCE == ENABLED - if (copter.fence.sys_status_enabled()) { - control_sensors_enabled |= MAV_SYS_STATUS_GEOFENCE; - } -#endif #if PROXIMITY_ENABLED == ENABLED if (copter.g2.proximity.sensor_enabled()) { control_sensors_enabled |= MAV_SYS_STATUS_SENSOR_PROXIMITY; @@ -176,10 +166,4 @@ void GCS_Copter::update_vehicle_sensor_status_flags(void) } } #endif - -#if AC_FENCE == ENABLED - if (!copter.fence.sys_status_failed()) { - control_sensors_health |= MAV_SYS_STATUS_GEOFENCE; - } -#endif }