diff --git a/msg/GeofenceResult.msg b/msg/GeofenceResult.msg index 4121f6f502..838f3b39cc 100644 --- a/msg/GeofenceResult.msg +++ b/msg/GeofenceResult.msg @@ -10,5 +10,3 @@ uint8 geofence_violation_reason # one of geofence_violation_reason_t::* bool primary_geofence_breached # true if the primary geofence is breached uint8 primary_geofence_action # action to take when the primary geofence is breached - -bool home_required # true if the geofence requires a valid home position diff --git a/src/modules/navigator/navigator_main.cpp b/src/modules/navigator/navigator_main.cpp index a96e4791ed..373721f89c 100644 --- a/src/modules/navigator/navigator_main.cpp +++ b/src/modules/navigator/navigator_main.cpp @@ -995,7 +995,7 @@ void Navigator::geofence_breach_check(bool &have_geofence_position_data) _geofence_result.timestamp = hrt_absolute_time(); _geofence_result.primary_geofence_action = _geofence.getGeofenceAction(); - _geofence_result.home_required = _geofence.isHomeRequired(); + if (gf_violation_type.value) { /* inform other apps via the mission result */