mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 14:33:34 +08:00
mission: On an updated mission, don't assume per default that the mission is not valid, use the state from the last mission validation.
This commit is contained in:
@@ -586,7 +586,7 @@ void
|
||||
Mission::update_mission()
|
||||
{
|
||||
|
||||
bool failed = true;
|
||||
bool failed = !_navigator->get_mission_result()->valid;
|
||||
|
||||
_dataman_cache.invalidate();
|
||||
_load_mission_index = -1;
|
||||
@@ -653,6 +653,7 @@ Mission::update_mission()
|
||||
|
||||
} else {
|
||||
PX4_ERR("mission update failed");
|
||||
failed = true;
|
||||
}
|
||||
|
||||
if (failed) {
|
||||
|
||||
Reference in New Issue
Block a user