Class Claw
java.lang.Object
org.edu_nation.easy_ftc.mechanism.Claw
Implements a claw by extending the functionality of
ServoMechanism- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classConstruct aClawobject using the builder design patternstatic enumDirections that can be passed tocommand(direction) -
Method Summary
Modifier and TypeMethodDescriptionvoidcommand(Claw.Direction direction) Initiate an automated claw movementvoidcontrol()Enable teleoperated claw movement with gamepad (b, a)
-
Method Details
-
control
public void control()Enable teleoperated claw movement with gamepad (b, a) -
command
Initiate an automated claw movement- Parameters:
direction- direction to move the mechanism; seeClaw.Directionfor accepted values- Throws:
NullPointerException- if direction is nullIllegalArgumentException- if direction is an unexpected value
-