mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 01:53:33 +08:00
mission: The mission check on activation should only be performed for a mission, not RTL.
We need to make sure that when the RTL is triggered, it should not reevaluate it, as when it was valid but evaluated to false on activation, it can't do a RTL.
This commit is contained in:
@@ -86,6 +86,8 @@ Mission::on_activation()
|
||||
{
|
||||
_need_mission_save = true;
|
||||
|
||||
check_mission_valid(true);
|
||||
|
||||
MissionBase::on_activation();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user