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

Fix MAV_CMD_DO_JUMP skipping to end of mission when Jump points to itself #28604

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

Conversation

joshanne
Copy link
Contributor

In the case where a unlimited jump is used, if the jump item points to itself, it will result in the AV skipping the rest of the mission and triggering RTL.

This handles JUMPs that point to themselves by skipping them.

First commit shows the issue occuring, second commit shows the fix to the issue.

@joshanne joshanne marked this pull request as draft November 13, 2024 03:10
@joshanne joshanne changed the title draft: Fix MAV_CMD_DO_JUMP skipping to end of mission when Jump points to itself Fix MAV_CMD_DO_JUMP skipping to end of mission when Jump points to itself Nov 13, 2024
@joshanne joshanne force-pushed the pr/fix-MAV_CMD_DO_JUMP-skipping-to-end-of-mission branch from 35b329c to af263c3 Compare November 13, 2024 03:28
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.

Nice test.

Tools/autotest/arduplane.py Outdated Show resolved Hide resolved
Tools/autotest/arduplane.py Outdated Show resolved Hide resolved
@tridge tridge removed the DevCallEU label Nov 13, 2024
@joshanne joshanne force-pushed the pr/fix-MAV_CMD_DO_JUMP-skipping-to-end-of-mission branch from af263c3 to e2c4e84 Compare November 13, 2024 22:00
Fixes the case where MAV_CMD_DO_JUMP pointing to itself will skip the rest of the mission.
This fixes the failure that results from the autotest added in previous commit.
@joshanne joshanne force-pushed the pr/fix-MAV_CMD_DO_JUMP-skipping-to-end-of-mission branch from e2c4e84 to 87c6372 Compare November 13, 2024 22:47
@joshanne joshanne marked this pull request as ready for review November 13, 2024 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants