Closed Fubini2 closed 2 years ago
The equation for t_to_v_min
is the solution of a two-step braking profile with j1 = -jMax
and j2 = +jMax
. As its second condition, the acceleration after the second step needs to be zero (a2=0
), otherwise the velocity limit would be violated afterwards. In Mathematica, the equation system is given by:
Solve[{vMin == (v0 + a0*t1 - 1/2 jMax t1^2) + (a0 - jMax t1)*t2 + 1/2 jMax t2^2, 0 == (a0 - jMax t1) + jMax t2}, {t1, t2}]
Of course, t_to_v_min
corresponds to t1
.
Dear @pantor,
investigating further in a issue we had with the final acceleration prototype I found the following lines of code in the above method
Inside the calculation t_to_v_min should it not be
instead of
or am I missing here something in the solution of this quadratic equation.
Fubini