mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 11:59:17 +08:00
mission: only run update_mission() if mission is updated, not when we want to reset
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
@@ -113,8 +113,8 @@ Mission::on_inactive()
|
|||||||
/* reset the current mission if needed */
|
/* reset the current mission if needed */
|
||||||
if (need_to_reset_mission()) {
|
if (need_to_reset_mission()) {
|
||||||
reset_mission(_mission);
|
reset_mission(_mission);
|
||||||
update_mission();
|
|
||||||
_navigator->reset_cruising_speed();
|
_navigator->reset_cruising_speed();
|
||||||
|
_current_mission_index = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user