mirror of
https://github.com/Team4388/2022NoWayHome.git
synced 2026-06-09 08:48:07 -06:00
TestButtons + soft limits
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user