We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I'm now reading the controller source code and trying to customize my controller.
In the speed_limiter.cpp, I have a question about the dt2, i don't get that why it is 2*dt*dt?
speed_limiter.cpp
dt2
2*dt*dt
why is it not just dt*dt by applying finite-difference methods?
dt*dt
Thanks.
double SpeedLimiter::limit_jerk(double& v, double v0, double v1, double dt) { const double tmp = v; if (has_jerk_limits) { const double dv = v - v0; const double dv0 = v0 - v1; const double dt2 = 2. * dt * dt; // why 2? const double da_min = min_jerk * dt2; const double da_max = max_jerk * dt2; const double da = clamp(dv - dv0, da_min, da_max); v = v0 + dv0 + da; } return tmp != 0.0 ? v / tmp : 1.0; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
I'm now reading the controller source code and trying to customize my controller.
In the
speed_limiter.cpp
, I have a question about thedt2
, i don't get that why it is2*dt*dt
?why is it not just
dt*dt
by applying finite-difference methods?Thanks.
The text was updated successfully, but these errors were encountered: