Package frc.robot
Class OperatorState
java.lang.Object
frc.robot.OperatorState
Singleton tracker for operator state.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Advance state backward by one.static void
Disable manual mode for elevator/wrist.static void
Enable manual mode for elevator/wrist.static OperatorState.State
Get currently tracked state.static void
Advance state forward by one.static boolean
Get whether or not operator should be able to control wrist and elevator manually.static void
setState
(OperatorState.State state) Set Operator Statestatic boolean
tagFilter
(int id) Only use certain tags in certain modes.static void
Toggle manual mode for elevator/wrist.
-
Method Details
-
manualModeEnabled
public static boolean manualModeEnabled()Get whether or not operator should be able to control wrist and elevator manually. -
toggleManualMode
public static void toggleManualMode()Toggle manual mode for elevator/wrist. -
enableManualMode
public static void enableManualMode()Enable manual mode for elevator/wrist. -
disableManualMode
public static void disableManualMode()Disable manual mode for elevator/wrist. -
getCurrentState
Get currently tracked state. -
increment
public static void increment()Advance state forward by one. -
decrement
public static void decrement()Advance state backward by one. -
setState
Set Operator State- Parameters:
state
- Operator State
-
tagFilter
public static boolean tagFilter(int id) Only use certain tags in certain modes. Helps for incorrect field layouts during practice.
-