You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MissionBase: replay change speed on resume immediately if not going to 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]>
Copy file name to clipboardexpand all lines: src/modules/navigator/mission_base.h
+1
Original file line number
Diff line number
Diff line change
@@ -332,6 +332,7 @@ class MissionBase : public MissionBlock, public ModuleParams
332
332
float _mission_init_climb_altitude_amsl{NAN}; /**< altitude AMSL the vehicle will climb to when mission starts */
333
333
int _inactivation_index{-1}; // index of mission item at which the mission was paused. Used to resume survey missions at previous waypoint to not lose images.
334
334
int _mission_activation_index{-1}; /**< Index of the mission item that will bring the vehicle back to a mission waypoint */
335
+
bool _speed_replayed_on_activation{false}; /**< Flag indicating if the speed change items have been replayed on activation */
335
336
336
337
int32_t _load_mission_index{-1}; /**< Mission inted of loaded mission items in dataman cache*/
337
338
int32_t _dataman_cache_size_signed; /**< Size of the dataman cache. A negativ value indicates that previous mission items should be loaded, a positiv value the next mission items*/
0 commit comments