mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-24 16:53:57 -04:00
AC_Circle: run horizontal position control at main loop rate
This commit is contained in:
parent
ac82a37728
commit
e9c23b538e
@ -111,11 +111,6 @@ void AC_Circle::update()
|
||||
{
|
||||
// calculate dt
|
||||
float dt = _pos_control.time_since_last_xy_update();
|
||||
|
||||
// update circle position at poscontrol update rate
|
||||
if (dt >= _pos_control.get_dt_xy()) {
|
||||
|
||||
// double check dt is reasonable
|
||||
if (dt >= 0.2f) {
|
||||
dt = 0.0f;
|
||||
}
|
||||
@ -166,7 +161,6 @@ void AC_Circle::update()
|
||||
// update position controller
|
||||
_pos_control.update_xy_controller(1.0f);
|
||||
}
|
||||
}
|
||||
|
||||
// get_closest_point_on_circle - returns closest point on the circle
|
||||
// circle's center should already have been set
|
||||
|
Loading…
Reference in New Issue
Block a user