Class StateMachineOpMode
java.lang.Object
com.qualcomm.robotcore.eventloop.opmode.OpMode
org.firstinspires.ftc.teamcode.auton.stateMachineBackupTest.StateMachineOpMode
@Autonomous(name="State Machine Backup")
public class StateMachineOpMode
extends com.qualcomm.robotcore.eventloop.opmode.OpMode
-
Field Summary
Modifier and TypeFieldDescription(package private) Class<? extends StateInterface>
(package private) DrivingState
com.qualcomm.robotcore.hardware.Gamepad
com.qualcomm.robotcore.hardware.Gamepad
com.qualcomm.robotcore.hardware.HardwareMap
(package private) IdleState
(package private) Class<? extends StateInterface>
(package private) IntakeState
static final int
int
Deprecated.(package private) ScoringState
HashMap<Class<? extends StateInterface>,
StateInterface> org.firstinspires.ftc.robotcore.external.Telemetry
Fields inherited from class com.qualcomm.robotcore.eventloop.opmode.OpMode
msStuckDetectInit, msStuckDetectInitLoop, msStuckDetectLoop, msStuckDetectStart
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
init()
void
loop()
final void
void
runState
(StateInterface state) void
start()
Methods inherited from class com.qualcomm.robotcore.eventloop.opmode.OpMode
getRuntime, init_loop, internalPostInitLoop, internalPostLoop, internalPreInit, internalUpdateTelemetryNow, resetRuntime, stop, terminateOpModeNow, updateTelemetry
-
Field Details
-
currentState
Class<? extends StateInterface> currentState -
drivingState
DrivingState drivingState -
scoringState
ScoringState scoringState -
intakeState
IntakeState intakeState -
idleState
IdleState idleState -
initialState
Class<? extends StateInterface> initialState -
states
-
MS_BEFORE_FORCE_STOP_AFTER_STOP_REQUESTED
public static final int MS_BEFORE_FORCE_STOP_AFTER_STOP_REQUESTED- See Also:
-
gamepad1
public volatile com.qualcomm.robotcore.hardware.Gamepad gamepad1 -
gamepad2
public volatile com.qualcomm.robotcore.hardware.Gamepad gamepad2 -
telemetry
public org.firstinspires.ftc.robotcore.external.Telemetry telemetry -
hardwareMap
public volatile com.qualcomm.robotcore.hardware.HardwareMap hardwareMap -
msStuckDetectStop
Deprecated.
-
-
Constructor Details
-
StateMachineOpMode
public StateMachineOpMode()
-
-
Method Details
-
init
public void init()- Specified by:
init
in classcom.qualcomm.robotcore.eventloop.opmode.OpMode
-
start
public void start()- Overrides:
start
in classcom.qualcomm.robotcore.eventloop.opmode.OpMode
-
loop
public void loop()- Specified by:
loop
in classcom.qualcomm.robotcore.eventloop.opmode.OpMode
-
runState
-
requestOpModeStop
public final void requestOpModeStop()
-