Files
PX4-Autopilot/msg/GeofenceResult.msg
T
jonas 1a86ede26d refactor(navigator): name the two geofences the same way everywhere
The contingency geofence was cont_geofence in some names and
geofence_cont in others, and the names of the emergency geofence did
not say which geofence they mean. Now:

- Fields, functions and members start with geofence_emer_ or
  geofence_cont_, like the parameters and the failsafe flags:
  geofence_emer_allows_position(), geofence_emer_action,
  geofence_emer_max_dist_triggered, _geofence_emer_reposition_sent.
- Local variables spell the level out: breach_emergency,
  hold_contingency, contingency_margin.
- fromContGeofenceActionParam() is fromGfContActParam(), next to
  fromGfActParam().

Four logged geofence_result fields change their name with this. The
release note lists them. No functional change.

Assisted-by: Claude:claude-fable-5-2
Signed-off-by: jonas <jonspero@me.com>
2026-11-20 11:11:02 +01:00

17 lines
1.3 KiB
Plaintext

uint64 timestamp # time since system start (microseconds)
uint8 GF_ACTION_NONE = 0 # no action on geofence violation
uint8 GF_ACTION_WARN = 1 # critical mavlink message
uint8 GF_ACTION_LOITER = 2 # switch to AUTO|LOITER
uint8 GF_ACTION_RTL = 3 # switch to AUTO|RTL
uint8 GF_ACTION_TERMINATE = 4 # flight termination
uint8 GF_ACTION_LAND = 5 # switch to AUTO|LAND
bool geofence_emer_max_dist_triggered # true if the emergency geofence check for max distance from Home is triggered
bool geofence_emer_max_alt_triggered # true if the emergency geofence check for max altitude above Home is triggered
bool geofence_emer_custom_fence_triggered # true if the emergency geofence check for custom inclusion/exclusion geofence(s) is triggered
bool geofence_cont_max_dist_triggered # true if the contingency geofence check for max distance from Home is triggered
bool geofence_cont_custom_fence_triggered # true if the contingency geofence check for custom inclusion/exclusion geofence(s) is triggered
uint8 geofence_emer_action # action to take when the emergency geofence is breached
uint8 geofence_cont_action # action to take when the contingency geofence is breached, GF_ACTION_NONE while it is disabled