mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-28 19:48:31 -04:00
AC_WPNav: advance_spline to use dt
This commit is contained in:
parent
c0458b786a
commit
7dfde39e19
@ -714,7 +714,7 @@ void AC_WPNav::advance_spline_target_along_track(float dt)
|
|||||||
_yaw = RadiansToCentiDegrees(atan2(target_vel.y,target_vel.x));
|
_yaw = RadiansToCentiDegrees(atan2(target_vel.y,target_vel.x));
|
||||||
|
|
||||||
// advance spline time to next step
|
// advance spline time to next step
|
||||||
_spline_time += spline_time_scale*0.1f;
|
_spline_time += spline_time_scale*dt;
|
||||||
|
|
||||||
// we will reach the next waypoint in the next step so set reached_destination flag
|
// we will reach the next waypoint in the next step so set reached_destination flag
|
||||||
// To-Do: is this one step too early?
|
// To-Do: is this one step too early?
|
||||||
|
Loading…
Reference in New Issue
Block a user