VelocitySmoothing - Change direction of "brake" as braking means that

only the T3 part is required and that the jerk applied during T3 is the
opposite of the one defined by "_direction".
This commit is contained in:
bresch
2019-09-13 10:35:19 +02:00
committed by Matthias Grob
parent 8490266be8
commit 42cedb7fda

View File

@@ -188,7 +188,7 @@ int VelocitySmoothing::computeDirection()
if (direction == 0) {
// If by braking immediately the velocity is exactly
// the require one with zero acceleration, then brake
direction = -math::sign(_state.a);
direction = math::sign(_state.a);
}
return direction;