mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 09:28:58 +00: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.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)) {
|
||||
|
||||
Reference in New Issue
Block a user