fix reposition: set acceptance radius

Previously the acceptance radius was 0, so the FlightTaskAutoLine was
randomly changing yaw and sometimes going into a random direction.
There is still something else wrong in there, but avoids the reposition
problem.
This commit is contained in:
Beat Küng 2018-10-25 16:47:19 +02:00 committed by Lorenz Meier
parent 3e9e55150d
commit b65871b433

View File

@ -319,6 +319,7 @@ Navigator::run()
rep->current.type = position_setpoint_s::SETPOINT_TYPE_LOITER;
rep->current.cruising_speed = get_cruising_speed();
rep->current.cruising_throttle = get_cruising_throttle();
rep->current.acceptance_radius = get_acceptance_radius();
// Go on and check which changes had been requested
if (PX4_ISFINITE(cmd.param4)) {