forked from Archive/PX4-Autopilot
mission_base: check mission feasibility again, if geofence has changed.
This commit is contained in:
parent
1b03ac4d2b
commit
fb3aab1fb0
|
@ -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*/
|
||||
|
|
Loading…
Reference in New Issue