navigator: reset vehicle_roi on mission update

This commit is contained in:
Alessandro Simovic
2019-02-25 09:11:24 -05:00
committed by Daniel Agar
parent 9355324209
commit d5aad58c92
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -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) {