Skip to content

Commit

Permalink
Add MotorHoldMode
Browse files Browse the repository at this point in the history
  • Loading branch information
superpenguin612 committed Dec 21, 2023
1 parent f3234ff commit 1add9da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package com.techhounds.houndutil.houndlib;

// required to be motor-agnostic
public enum MotorHoldMode {
BRAKE,
COAST;
}
1 change: 0 additions & 1 deletion src/main/java/com/techhounds/houndutil/houndlib/Utils.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.techhounds.houndutil.houndlib;

public class Utils {

public static boolean limitMechanism(boolean isLowerTriggered, boolean isUpperTriggered, double value) {
return (value > 0.0 && isUpperTriggered) || (value < 0.0 && isLowerTriggered);
}
Expand Down

0 comments on commit 1add9da

Please sign in to comment.