mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 07:23:34 +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:
@@ -319,6 +319,7 @@ Navigator::run()
|
|||||||
rep->current.type = position_setpoint_s::SETPOINT_TYPE_LOITER;
|
rep->current.type = position_setpoint_s::SETPOINT_TYPE_LOITER;
|
||||||
rep->current.cruising_speed = get_cruising_speed();
|
rep->current.cruising_speed = get_cruising_speed();
|
||||||
rep->current.cruising_throttle = get_cruising_throttle();
|
rep->current.cruising_throttle = get_cruising_throttle();
|
||||||
|
rep->current.acceptance_radius = get_acceptance_radius();
|
||||||
|
|
||||||
// Go on and check which changes had been requested
|
// Go on and check which changes had been requested
|
||||||
if (PX4_ISFINITE(cmd.param4)) {
|
if (PX4_ISFINITE(cmd.param4)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user