Skip to content

Commit 4f09a81

Browse files
committed
fix mistake in jerk limit (diff_drive_controller)
1 parent 3512c3a commit 4f09a81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

diff_drive_controller/src/speed_limiter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ namespace diff_drive_controller
121121
const double dv = v - v0;
122122
const double dv0 = v0 - v1;
123123

124-
const double dt2 = 2. * dt * dt;
124+
const double dt2 = dt * dt;
125125

126126
const double da_min = min_jerk * dt2;
127127
const double da_max = max_jerk * dt2;

0 commit comments

Comments
 (0)