Skip to content

Commit

Permalink
mission: On an updated mission, don't assume per default that the mis…
Browse files Browse the repository at this point in the history
…sion is not valid, use the state from the last mission validation.
  • Loading branch information
KonradRudin authored and pussuw committed Dec 12, 2023
1 parent 4072914 commit 2bfb214
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/navigator/mission.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -653,6 +653,7 @@ Mission::update_mission()

} else {
PX4_ERR("mission update failed");
failed = true;
}

if (failed) {
Expand Down

0 comments on commit 2bfb214

Please sign in to comment.