Conversation
…o previous This fixes an issue where the speed was not correctly set at the beginning of a survey (with first wp having a DO_CHANGE_SPEED attached) when the user paused and resumed the mission prior to reaching the first waypoint. Signed-off-by: Silvan Fuhrer <[email protected]>
StefanoColli
previously approved these changes
Mar 11, 2025
Contributor
StefanoColli
left a comment
There was a problem hiding this comment.
Nice catch! There is only a small typo to be corrected
Co-authored-by: Stefano Colli <[email protected]>
StefanoColli
approved these changes
Mar 11, 2025
mrpollo
pushed a commit
that referenced
this pull request
Nov 24, 2025
…o previous (#24484) * MissionBase: replay change speed on resume immediately if not going to previous This fixes an issue where the speed was not correctly set at the beginning of a survey (with first wp having a DO_CHANGE_SPEED attached) when the user paused and resumed the mission prior to reaching the first waypoint. Signed-off-by: Silvan Fuhrer <[email protected]> * Update src/modules/navigator/mission_base.cpp Co-authored-by: Stefano Colli <[email protected]> --------- Signed-off-by: Silvan Fuhrer <[email protected]> Co-authored-by: Stefano Colli <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Solved Problem
This fixes an issue where the speed was not correctly set at the beginning of a survey (with first wp having a DO_CHANGE_SPEED attached) when the user paused and resumed the mission prior to reaching the first waypoint.
See following screen recording: mission is paused before reaching the survey, and on resume the survey speed is not applied.
AMC_change_speed_prior_survey.mp4
Digging further down: when resuming the mission, the previous DO_CHANGE_SPEED are not immediately replayed but only once the next waypoint is reached. In the case here, this coincides with the next DO_CHANGE_SPEED (12) of the survey, which is thus overwritten by the previous DO_CHANGE_SPEED (5), and the survey is flown at 5m/s instead of 12.
Solution
Replay DO_CHANGE_SPEED setpoints immediately on mission resume unless the vehicle first has to go back to previous waypoint.
Changelog Entry
For release notes:
Test coverage
SITL tests with quad and survey pattern (which has a different mission speed defined as rest of mission).
Context
This is a follow up to #23484.