mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 19:43:33 +08:00
navigator: reset vehicle_roi on mission update
This commit is contained in:
committed by
Daniel Agar
parent
9355324209
commit
d5aad58c92
@@ -448,6 +448,11 @@ Mission::update_mission()
|
||||
/* reset triplets */
|
||||
_navigator->reset_triplets();
|
||||
|
||||
/* Reset vehicle_roi
|
||||
* Missions that do not explicitly configure ROI would not override
|
||||
* an existing ROI setting from previous missions */
|
||||
_navigator->reset_vroi();
|
||||
|
||||
struct mission_s old_mission = _mission;
|
||||
|
||||
if (orb_copy(ORB_ID(mission), _navigator->get_mission_sub(), &_mission) == OK) {
|
||||
|
||||
Reference in New Issue
Block a user