From a41f24a2e2277ac5df9d7b29ba15816a48c9e0db Mon Sep 17 00:00:00 2001 From: Silvan Fuhrer Date: Thu, 16 Nov 2023 14:03:14 +0100 Subject: [PATCH] geofence_result.msg: rename premove unused field home_required Signed-off-by: Silvan Fuhrer --- msg/GeofenceResult.msg | 2 -- src/modules/navigator/navigator_main.cpp | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) 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 */