mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-25 00:30:50 +08:00
docs(geofence): tidy the pre-geofence setup notes
- Drop the advice for boards without GF_PRE_MARGIN and the VTOL line of the gap list. - Say when an uploaded mission is checked again, and that the geofence limits behave the same. - Say what "a plan is not rejected because of the pre-geofence" means. - Go-to: only the target is checked, as for the geofence, and a vehicle outside the pre-geofence can still be paused or change its altitude. - Return: explain the added margin where the safety margin is explained, and say that the altitude limits are measured from Home while the return altitude is measured from the destination. Assisted-by: Claude:claude-fable-5-2 Signed-off-by: jonas <jonspero@me.com>
This commit is contained in:
1 parent
cdfbea9eab
commit
91db003439
2 files changed
+13
-10
No files matched your search
@@ -261,7 +261,6 @@ A limit that is set to 0 is disabled, and the pre-geofence is off while all of t
|
||||
The margin applies to every inclusion and exclusion area of the [Geofence Plan](../flying/geofence.md#geofence-plan): the vehicle breaches the pre-geofence once it comes closer to one of them than `GF_PRE_MARGIN`.
|
||||
It is a single distance for the whole plan, so there is only one fence to draw and upload.
|
||||
`GF_PRE_MARGIN` is only available on flight controllers that [check the mission flight path](#mission-feasibility-checks) against the geofence (not on `px4_fmu-v2`, for example).
|
||||
On the others, draw the geofence with the gap below already taken off and set its action to `Hold`.
|
||||
|
||||

|
||||
|
||||
@@ -271,7 +270,6 @@ The gap should be at least:
|
||||
- Fixed-wing: The loiter radius ([NAV_LOITER_RAD](../advanced_config/parameter_reference.md#NAV_LOITER_RAD)).
|
||||
- Multicopter: The nominal stopping distance (`v^2 / 2a` with `v`=[MPC_XY_VEL_MAX](../advanced_config/parameter_reference.md#MPC_XY_VEL_MAX) and `a`=[MPC_ACC_HOR](../advanced_config/parameter_reference.md#MPC_ACC_HOR)).
|
||||
Allow additional distance for the acceleration ramp ([MPC_JERK_AUTO](../advanced_config/parameter_reference.md#MPC_JERK_AUTO)).
|
||||
- VTOL: The value for the flight phase in that part of the flight.
|
||||
|
||||
Use a gap above these nominal values to account for possible tailwind, position uncertainty, attitude tracking delay, etc.
|
||||
|
||||
@@ -282,10 +280,10 @@ PX4 does not check the setup:
|
||||
- The pre-geofence action should be the milder of the two.
|
||||
It has no `None`, because the pre-geofence is disabled through its limits, and no `Terminate`, which is left to the geofence.
|
||||
- Keep the Return altitude ([RTL_RETURN_ALT](../advanced_config/parameter_reference.md#RTL_RETURN_ALT)) below `GF_PRE_MAX_VDIST`.
|
||||
- A mission that is already uploaded is not checked again when these parameters change, only the next time Mission mode is activated.
|
||||
Upload it again after changing them.
|
||||
A mission that is being flown keeps its result.
|
||||
- The pre-geofence never makes a geofence plan invalid.
|
||||
It is measured from the destination and the limit from Home, so allow for a rally point or landing that is higher than Home.
|
||||
- As for the geofence limits, a mission that is already uploaded is not checked again when these parameters change, also not while it is being flown.
|
||||
It is checked again when Mission mode is activated, or when the mission or the Geofence Plan is uploaded.
|
||||
- A geofence plan is not rejected because of the pre-geofence, for example when Home or the vehicle lies within the margin.
|
||||
If the vehicle is already outside the pre-geofence when the plan is uploaded or a parameter changes, the action is triggered at once.
|
||||
|
||||
:::
|
||||
@@ -308,8 +306,9 @@ PX4 also keeps planned flight inside the pre-geofence:
|
||||
- A mission is rejected if one of its positions is outside the pre-geofence.
|
||||
It is also rejected if a leg between positions or a fixed-wing loiter circle comes closer to the plan than the margin.
|
||||
- The target of a _Go to location_ ([reposition](https://mavlink.io/en/messages/common.html#MAV_CMD_DO_REPOSITION)) or of an altitude change, and the centre of a fixed-wing orbit or figure-eight, is refused if it lies outside the pre-geofence (unless the action is `Warning`).
|
||||
Only the target is checked, not the path to it or the loiter circle around it.
|
||||
- [Return mode](../flight_modes/return.md#geofence_awareness) plans its route around the Geofence Plan with the margin added, so that it does not trigger the pre-geofence action.
|
||||
As for the geofence, only the target is checked, not the path to it or the loiter circle around it.
|
||||
A vehicle that is outside the pre-geofence can still be paused or change its altitude, because only what the command changes is checked.
|
||||
- [Return mode](../flight_modes/return.md#geofence_awareness) plans its route around the Geofence Plan with the margin added.
|
||||
|
||||
## Position Estimation Failsafes
|
||||
|
||||
|
||||
@@ -254,6 +254,8 @@ The figures below show an exclusion zone and an inclusion zone.
|
||||
|
||||

|
||||
|
||||
If a [pre-geofence margin](../config/safety.md#pre-geofence) is set ([GF_PRE_MARGIN](../advanced_config/parameter_reference.md#GF_PRE_MARGIN)), the polygons are enlarged or shrunk by that distance as well, so that the route keeps out of the margin.
|
||||
|
||||
### Geofence Limitations
|
||||
|
||||
- The size of geofence that can be handled is limited by [GF_AVOID_NODES](../advanced_config/parameter_reference.md#GF_AVOID_NODES) (default 100, maximum 200, reboot required).
|
||||
@@ -269,8 +271,7 @@ The figures below show an exclusion zone and an inclusion zone.
|
||||
- The safety margin in the [Shortest-path Calculation](#shortest-path-calculation) above may not be appropriate for all vehicles.
|
||||
It is derived from [NAV_LOITER_RAD](../advanced_config/parameter_reference.md#NAV_LOITER_RAD) for fixed-wing and VTOL vehicles, and from twice [NAV_ACC_RAD](../advanced_config/parameter_reference.md#NAV_ACC_RAD) for multicopters.
|
||||
It is not directly configurable.
|
||||
- A [pre-geofence margin](../config/safety.md#pre-geofence) ([GF_PRE_MARGIN](../advanced_config/parameter_reference.md#GF_PRE_MARGIN)) is added to the safety margin, so that the route does not trigger the pre-geofence action.
|
||||
A wide margin makes it more likely that a region is cut off, or that the destination lies within the margin.
|
||||
- A wide [pre-geofence margin](../config/safety.md#pre-geofence) makes it more likely that a region is cut off, or that the destination lies within the margin.
|
||||
Keep Home and the rally points further from the fence than both margins together, because the autopilot otherwise falls back to a direct path.
|
||||
|
||||
### Geofence Awareness Messages
|
||||
@@ -290,6 +291,9 @@ The exception is when executing a [mission path return](#rtl_type_2) from _withi
|
||||
In this case the vehicle follows mission waypoints, which we assume are planned to avoid any obstacles.
|
||||
:::
|
||||
|
||||
Keep the return altitude below the [geofence](../config/safety.md#geofence-failsafe) and [pre-geofence](../config/safety.md#pre-geofence) altitude limits ([GF_MAX_VER_DIST](../advanced_config/parameter_reference.md#GF_MAX_VER_DIST), [GF_PRE_MAX_VDIST](../advanced_config/parameter_reference.md#GF_PRE_MAX_VDIST)): a vehicle that climbs to it otherwise breaches them.
|
||||
The limits are measured from Home and the return altitude from the destination, which can be higher than Home.
|
||||
|
||||
The return altitude for a fixed-wing vehicle or a VTOL in fixed-wing mode is configured using the parameter [RTL_RETURN_ALT](#RTL_RETURN_ALT) (does not use the code described in the next paragraph).
|
||||
|
||||
The return altitude for a multicopter (or VTOL vehicle in MC mode) is configured using the parameters [RTL_RETURN_ALT](#RTL_RETURN_ALT), [RTL_CONE_ANG](#RTL_CONE_ANG), and [RTL_MIN_DIST](#RTL_MIN_DIST), which together define a half cone centered around the destination (home location or safety point).
|
||||
|
||||
Reference in new issue
Block a user