mission_block: explicitly (re)set the acceptance radius to default for takeoff items

otherwise a previously adjusted or uninitialized radius from the last flight
can cause problems during the new takeoff
This commit is contained in:
Matthias Grob 2022-09-01 22:17:36 +02:00
parent b825b61a20
commit da01dd9eeb
1 changed files with 1 additions and 0 deletions

View File

@ -821,6 +821,7 @@ MissionBlock::set_takeoff_item(struct mission_item_s *item, float abs_altitude)
item->altitude = abs_altitude;
item->altitude_is_relative = false;
item->acceptance_radius = _navigator->get_acceptance_radius();
item->loiter_radius = _navigator->get_loiter_radius();
item->autocontinue = false;
item->origin = ORIGIN_ONBOARD;