mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-29 03:36:07 +08:00
mission: reset work_item_type during mission inactivation
- this fixes a race condition which happens when an RTL is triggered during the final approach of a mission landing. In that case the mission inactive method is never called. Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
@@ -158,6 +158,9 @@ Mission::on_inactivation()
|
|||||||
}
|
}
|
||||||
|
|
||||||
_time_mission_deactivated = hrt_absolute_time();
|
_time_mission_deactivated = hrt_absolute_time();
|
||||||
|
|
||||||
|
/* reset so current mission item gets restarted if mission was paused */
|
||||||
|
_work_item_type = WORK_ITEM_TYPE_DEFAULT;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
Reference in New Issue
Block a user