diff --git a/src/main/java/com/github/dozer/output/MotorRamping.java b/src/main/java/com/github/dozer/output/MotorRamping.java index a44aaa8..c9558a1 100644 --- a/src/main/java/com/github/dozer/output/MotorRamping.java +++ b/src/main/java/com/github/dozer/output/MotorRamping.java @@ -44,9 +44,9 @@ public void update() { if (Math.abs(setpoint - current) < moveAmount) { current = setpoint; } else if (setpoint > moveAmount) { - current += motorRamping; + current += moveAmount; } else if (setpoint < moveAmount) { - current -= motorRamping; + current -= moveAmount; } speedController.set(current); this.lastTime = System.currentTimeMillis();