mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
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:
parent
3e9e55150d
commit
b65871b433
@ -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)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user