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_WPNav: correct calculation of predict-accel when zeroing pilot desired accel #27450

Merged
merged 2 commits into from
Jul 9, 2024

Conversation

peterbarker
Copy link
Contributor

This is a (currently failing) test which checks what happens if we re-enter LOITER from AUTO while we are in RC failsafe.

This picture shows that we maintain 1.3m/s in LOITER when in RC failsafe following an auto mission.

image

If the set-parameter of SIM_RC_FAIL is removed, and the re-setting of the roll input to 1500 is commented back in the test passes (i.e. the vehicle comes to a stop)

@khancyr
Copy link
Contributor

khancyr commented Jul 4, 2024

shouldn't the drone crash from Auto to Loiter in rc failsafe ? there is no throttle so it should go down

@peterbarker
Copy link
Contributor Author

shouldn't the drone crash from Auto to Loiter in rc failsafe ? there is no throttle so it should go down

Most modes where the user controls throttle that would be true, but loiter mode tries to handle the case where we are in RC failsafe somehow. Some defensive programming, the comments seem to indicate.

I believe it's just the defensive measures had bitrotted over time.

@peterbarker peterbarker changed the title autotest: add test for entering loiter after auto in RC failsafe AC_WPNav: correct calculation of predict-accel when zeroing pilot desired accel Jul 9, 2024
@peterbarker peterbarker merged commit 99fb5a9 into ArduPilot:master Jul 9, 2024
92 checks passed
@peterbarker
Copy link
Contributor Author

Merged based on verbal approval from Leonard on DevCall :-)

@peterbarker peterbarker deleted the pr/loiter-keeps-on-moving branch July 9, 2024 02:23
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.

None yet

5 participants