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

AC_Fence: fixed 2 regressions from 4.5.x #28729

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

Conversation

tridge
Copy link
Contributor

@tridge tridge commented Nov 25, 2024

This fixes 2 regressions in fence behaviour since 4.5.x.

  • we had lost the pre-arm check on being inside the polygon fence for FENCE_AUTOENABLE=3
  • if the user has both a RCn_OPTION=11 (FENCE) and FENCE_AUTOENABLE=3 then the autoenable did not happen

we should only add fence types to the no auto-enable mask if the
enable actually changed that type of fence. This fixes the case where
the user has both FENCE_AUTOENABLE=3 and RCn_OPTION=11. The disable
triggered by the init of the aux function was preventing the fence
from auto-enabling
@tridge tridge added the BUG label Nov 25, 2024
@tridge tridge mentioned this pull request Nov 25, 2024
11 tasks
@tridge tridge added the Plane label Nov 25, 2024
for polygon fences we need to check if the vehicle has a position and
is inside the polygon
@andyp1per
Copy link
Collaborator

@tridge I fully rely on the autotests to tell me whether a change is ok or not - you can see that this breaks one so will need some investigation. The change looks ok on the face of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants