TeamCode / org.firstinspires.ftc.teamcode.autonomous / AutoOpMode / State

State

abstract inner class State

Abstract class representing a single state/step in the AutoOpMode.

Constructors

<init>

State()

Abstract class representing a single state/step in the AutoOpMode.

Properties

name

abstract val name: String

The name of the State, displayed on the driver station.

Functions

run

abstract fun run(prev: State?, next: State?): Unit

Runs the code associated with a state.

Inheritors

ClaimDepot

inner class ClaimDepot : State

State in which the robot uses its intake to claim the depot. (2)

EnterDepot

inner class EnterDepot : State

State in which the robot enters the depot from the depot side.

ExitDepot

inner class ExitDepot : State

State in which the robot exits the depot.

GatherVisionData

inner class GatherVisionData : State

State in which the robot gathers vision data. (1)

KnockMineralCraterSide

inner class KnockMineralCraterSide : State

State in which the robot knocks the mineral and travels to the crater from the depot side.

KnockMineralDepotSide

inner class KnockMineralDepotSide : State

State in which the robot knocks the mineral from the depot side.

Land

inner class Land : State

Work-in-progress state in which the robot lands.

MoveFromLander

inner class MoveFromLander : State

State in which the robot moves away from the lander. (A)

MoveToSideCraterSide

inner class MoveToSideCraterSide : State

State in which the robot moves to the side to prepare to travel to the depot.

ParkAtCraterCraterSide

inner class ParkAtCraterCraterSide : State

State in which the robot travels to and parks at the crater when started from the crater side.

ParkAtCraterDepotSide

inner class ParkAtCraterDepotSide : State

State in which the robot travels to and parks at the crater when started from the crater side.

TravelToDepot

inner class TravelToDepot : State

State in which the robot travels to the depot.

TurnTowardsDepotCraterSide

inner class TurnTowardsDepotCraterSide : State

State in which the robot uses its gyro to turn towards the depot when started from the crater.

TurnTowardsDepotDepotSide

inner class TurnTowardsDepotDepotSide : State

State in which the robot uses its gyro to turn towards the depot when started from the depot.