mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user