TeamCode / org.firstinspires.ftc.teamcode.autonomous / AutoOpModeFallbackOnCraterSide

AutoOpModeFallbackOnCraterSide

@Autonomous("Autonomous Op Mode - Fallback on Crater Side", "Fallbacks") class AutoOpModeFallbackOnCraterSide : AutoOpMode

Autonomous op mode to use in case there is a chance of collision with the other team's robot.

Constructors

<init>

AutoOpModeFallbackOnCraterSide()

Autonomous op mode to use in case there is a chance of collision with the other team's robot.

Inherited Properties

claimDepotAngle

val claimDepotAngle: Double

Angle to which the robot should turn in order to claim the depot when started from the crater side, in degrees. (3)

claimDepotPauseTime

val claimDepotPauseTime: Int

How long the robot should pause after extending the intake, in milliseconds. (2)

drive

val drive: MecanumDrive

exitDepotTime

val exitDepotTime: Int

How long the robot exits the depot for when started from the depot side.

extake

val extake: ElevatorExtake

gyro

val gyro: Gyro

intake

val intake: ElevatorIntake

knockMineralCraterSideTime

val knockMineralCraterSideTime: Int

How long the robot should move to knock a mineral on the crater side, in milliseconds. (C)

knockMineralDepotSideTime

val knockMineralDepotSideTime: Int

How long the robot should move to knock a mineral on the depot side, in milliseconds. (B)

knockMineralReturnCraterSideTime

val knockMineralReturnCraterSideTime: Int

How long the robot should move after knocking a mineral on the crater side, in milliseconds. (C)

moveFromLanderTime

val moveFromLanderTime: Int

How long the robot should move away from the lander, in power-adjusted milliseconds. (A)

moveToDepotCraterSidePower

val moveToDepotCraterSidePower: Double

Power at which the robot moves along the side of the field towards the depot. (V)

moveToMineralCraterSideTime

val moveToMineralCraterSideTime: Int

How long the robot should move horizontally towards a mineral when started from the depot side, in milliseconds. (M)

moveToMineralDepotSideTime

val moveToMineralDepotSideTime: Int

How long the robot should move horizontally towards a mineral when started from the depot side, in milliseconds. (M)

moveToSideCraterSideTime

val moveToSideCraterSideTime: Int

How long the robot should move from the center mineral towards the side of the field before traveling to the depot, in milliseconds. (D)

parkAtCraterDepotSideTime

val parkAtCraterDepotSideTime: Int

How long the robot should move towards the crater, in milliseconds. (H)

postKnockMineralDepotSideTime

val postKnockMineralDepotSideTime: Int

How long the robot should move after knocking a mineral on the depot side, in milliseconds. (C)

rotateIntakePos

val rotateIntakePos: Int

Point to which the robot should rotate the intake. (2)

rotateIntakePower

val rotateIntakePower: Double

Power at which the robot should rotate the intake, in milliseconds. (2)

standardPower

val standardPower: Double

Standard power used when moving the robot. All millisecond values are multiplied by this value.

states

val states: LinkedList<State>

turnPower

val turnPower: Double

Power at which the robot should turn.

vision

val vision: Vision

visionTime

val visionTime: Int

How long the robot should obtain vision data for, in milliseconds. (1)

Functions

addCraterStates

fun addCraterStates(): Unit

Adds states to be used when the robot starts on the crater side.

Inherited Functions

addDepotStates

open fun addDepotStates(): Unit

Adds states to be used when the robot starts on the depot side.

addFallbackStates

open fun addFallbackStates(): Unit

Adds states to be used in case a location cannot be determined.

run

fun run(): Unit

runOpMode

open fun runOpMode(): Unit

setup

fun setup(): Unit