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