mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
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…
x
Reference in New Issue
Block a user