Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fence warn at the margins #28840

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

andyp1per
Copy link
Collaborator

@andyp1per andyp1per commented Dec 11, 2024

This PR allows you to get a repeated warning when flying outside FENCE_MARGIN but inside the fence itself. Can be enabled by setting FENCE_OPTIONS=4. Multiple people have requested this because they are required to have a hard fence with failsafe action for regulatory reasons but want to know when they are close so they can avoid the action (typically when flying manually)

@andyp1per andyp1per force-pushed the pr-fence-warn-margin branch from ce3674f to 9fbfa49 Compare December 12, 2024 14:05
@andyp1per andyp1per force-pushed the pr-fence-warn-margin branch from 9fbfa49 to 336ea4e Compare December 13, 2024 20:44
@Hwurzburg Hwurzburg added the WikiNeeded needs wiki update label Dec 13, 2024
@andyp1per andyp1per force-pushed the pr-fence-warn-margin branch from 336ea4e to 9fbfa49 Compare December 15, 2024 22:08
@Ryanf55
Copy link
Collaborator

Ryanf55 commented Dec 16, 2024

This PR allows you to get a repeated warning when flying outside FENCE_MARGIN but inside the fence itself. Can be enabled by setting FENCE_OPTIONS=4. Multiple people have requested this because they are required to have a hard fence with failsafe action for regulatory reasons but want to know when they are close so they can avoid the action (typically when flying manually)

Do you have any references to the specific regulatory requirements for fences?

libraries/AC_Fence/AC_Fence.cpp Outdated Show resolved Hide resolved
@rmackay9
Copy link
Contributor

Let's be careful about spamming the user when in Loiter mode and the user pushes the vehicle against the fence

Tools/autotest/arducopter.py Outdated Show resolved Hide resolved
Tools/autotest/arducopter.py Outdated Show resolved Hide resolved
return the closest distance that point p comes to an edge of closed
polygon V, defined by N points
*/
template <typename T>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't move this in the file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WikiNeeded needs wiki update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants