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: add SmartRTL test for rapid switch between smartrtl and alt… #27656

Merged
merged 1 commit into from
Jul 26, 2024

Conversation

peterbarker
Copy link
Contributor

…hold

@@ -9868,6 +9868,23 @@ def GPSForYaw(self):
if ex is not None:
raise ex

def SMART_RTL_EnterLeave(self):
'''check SmartRTL behaviour when entering/leaving'''
# we had a bug where we would consume points when re-entering smartrtl
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for this. Not that it matters too much because it's all in the past but the bug was that points would be lost if SmartRTL mode was exited before reaching home

Would it really "Cause a panic"? A panicking pilot perhaps but not a code execution panic I don't think.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This bug isn't in the past. This test is being merged disabled. It still causes SITL to panic.

I've pulled it out of #17419 so the test doesn't bitrot (which it had). I'll be rebasing the fix PR on top of master soon (it's a non-trivial rebase as it conflicts badly with the recent consumption-of-points fix we merged.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah right, sorry. I assumed this was related to my recent fix but no, this is for that long standing bug. OK thanks!

@peterbarker peterbarker merged commit 1f60ca3 into ArduPilot:master Jul 26, 2024
43 checks passed
@peterbarker peterbarker deleted the pr/smarrtl-test branch July 26, 2024 13:32
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