Skip to content

Commit 047e75e

Browse files
committed
Add reset method to MotionProfile class
1 parent edf07be commit 047e75e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: src/com/stuypulse/stuylib/streams/numbers/filters/MotionProfile.java

+5
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,9 @@ public double get(double target) {
103103

104104
return mOutput;
105105
}
106+
107+
public void reset(double position) {
108+
mOutput = position;
109+
mAccel = 0;
110+
}
106111
}

0 commit comments

Comments
 (0)