Skip to content

Commit dd2cd10

Browse files
committed
Fix smooth motion
1 parent bddec88 commit dd2cd10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/lasarobotics/hardware/revrobotics/SparkMax.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ private void updateInputs() {
307307
private void handleSmoothMotion() {
308308
if (!m_isSmoothMotionEnabled) return;
309309

310-
m_smoothMotionState = m_motionProfile.calculate(GlobalConstants.ROBOT_LOOP_PERIOD, m_smoothMotionState, m_currentStateSupplier.get());
310+
m_smoothMotionState = m_motionProfile.calculate(GlobalConstants.ROBOT_LOOP_PERIOD, m_currentStateSupplier.get(), m_smoothMotionState);
311311
set(
312312
m_smoothMotionState.position,
313313
ControlType.kPosition,

0 commit comments

Comments
 (0)