mission_base: check mission feasibility again, if geofence has changed.

This commit is contained in:
Konrad 2024-03-06 10:57:24 +01:00 committed by Silvan Fuhrer
parent 1b03ac4d2b
commit fb3aab1fb0
1 changed files with 5 additions and 0 deletions

View File

@ -102,6 +102,11 @@ void MissionBase::updateMavlinkMission()
static_cast<int32_t>(new_mission.count) - 1);
}
if (new_mission.geofence_id != _mission.geofence_id) {
// New geofence data, need to check mission again.
_mission_checked = false;
}
_mission = new_mission;
/* Relevant mission items updated externally*/