TestButtons + soft limits

This commit is contained in:
aarav18
2022-03-10 17:06:17 -07:00
parent b5345a53cb
commit 2b0dd53360
4 changed files with 58 additions and 6 deletions
@@ -74,6 +74,27 @@ public class Claws extends SubsystemBase {
m_open = open;
}
public void runClaw(ClawType which, double input) {
if (which == Claws.ClawType.LEFT) {
m_leftClaw.set(input);
} else if (which == Claws.ClawType.RIGHT) {
m_rightClaw.set(input);
}
}
public void runClaws(double input)
{
m_leftClaw.set(input);
m_rightClaw.set(input);
}
/**
* Sets the state of both hooks
* @param open The state of the hooks