Package com.crossbotics.ftchelper.robot
Class Wrist
- All Implemented Interfaces:
Subsystem
A wrist on one servo, with named angles (raw servo positions).
wrist = add(Wrist.servo("wrist")); // Robot.java
public static class Wrist { // Tunables.java (servo 0 to 1)
public static double down = 0.15, level = 0.5, up = 0.85;
}
Usual buttons (lines to write in Controls.java): operator D-pad left/right go to the next position down/up (lowest value first). Docs: docs/reference/robot-java.md (section "Wrist")
-
Method Summary
Methods inherited from class com.crossbotics.ftchelper.robot.ServoPositions
addTelemetry, alsoServo, alsoServoReversed, fullRange, goTo, isAt, isDone, isReversed, part, positions, reversed, secondServoMirrored, secondServoName, stop, update
-
Method Details
-
servo
A wrist on this servo.- Parameters:
servo- the servo's configuration name
-
next
public void next()The next position (by value; after the last comes the first). -
previous
public void previous()The previous position.
-