forked from Archive/PX4-Autopilot
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:
parent
b825b61a20
commit
da01dd9eeb
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue