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

autotest: fix FenceFloorEnabledLanding test #27858

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

andyp1per
Copy link
Collaborator

@andyp1per andyp1per commented Aug 16, 2024

This test had erroneous behaviour, now fixed.

@peterbarker
Copy link
Contributor

Could you explain what this test is supposed to be testing?

The test description is the same as another test in there, so I can't really trust it - the description does look correct for the other test.

The test doesn't seem to make sense as-written; it enters recovery mode, then waits for it to timeout, which should re-trigger the fence action - RTL - but then it fiddles with RC as if that will make a difference.

If I understand what's happening correctly this is actually a pretty serious bug in the fence logic.

When passing, the vehicle enters RTL and the disarm-on-land code within the mode triggers. When failing the vehicle stays in LOITER for what seems an unlimited period below the fence. The vehicle will not disarm in loiter when the landing detector fires as the relevant option bit it not set.

So... what is supposed to happen in this test? An assert_mode or two in here would not go astray!

@peterbarker
Copy link
Contributor

image

@andyp1per andyp1per changed the title autotest: disable FenceFloorEnabledLanding which is flapping autotest: fix FenceFloorEnabledLanding test Aug 20, 2024
Copy link
Contributor

@peterbarker peterbarker left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@peterbarker peterbarker merged commit dcc0be5 into ArduPilot:master Aug 20, 2024
43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants