TimeRed

@Autonomous(preselectTeleOp = "TeleOp")
class TimeRed : BaseOpMode

Howdy, Simon! Here's the class where you, yes, YOU get to make the robit go brrrrrrrrr. The legalDos list is important. It's all of the actions you can take. If the action only has 1 number, like TURN, LIFT, or CAROUSEL, just use x. If the action has 0 numbers, like BUCKET, ignore both x and y. If you set a WAIT time, the robot will start doing the thing and then go on to the next thing after the WAIT is over, REGARDLESS OF IF THE THING ACTUALLY FINISHED.

See also

org.firstinspires.ftc.teamcode.opmodes.freightfrenzy.auto.TimeRed

for more info.

Constructors

Link copied to clipboard
fun TimeRed()

Types

Link copied to clipboard
data class ActionSet(DO: String, WAIT: Double, x: Double, y: Double)
Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open fun cleanup()

Runs when the OpMode is stopped.

Link copied to clipboard
open fun getRuntime(): Double
Link copied to clipboard
open fun handleLoop()
Link copied to clipboard
fun idle()
Link copied to clipboard
override fun init()
Link copied to clipboard
override fun init_loop()
Link copied to clipboard
open override fun internalPostInitLoop()
Link copied to clipboard
open override fun internalPostLoop()
Link copied to clipboard
open fun internalPreInit()
Link copied to clipboard
fun internalUpdateTelemetryNow(p0: TelemetryMessage)
Link copied to clipboard
fun isStarted(): Boolean
Link copied to clipboard
fun isStopRequested(): Boolean
Link copied to clipboard
override fun loop()
Link copied to clipboard
fun opModeIsActive(): Boolean
Link copied to clipboard
open override fun preRunLoop()

Runs once before the loop starts.

Link copied to clipboard
open fun preSetup()

Runs before the hardware initializes.

Link copied to clipboard
fun requestOpModeStop()
Link copied to clipboard
open fun resetStartTime()
Link copied to clipboard
open override fun runLoop()

No touch.

Link copied to clipboard
override fun runOpMode()

Implements the above behavior.

Link copied to clipboard
open override fun setup()

No touch.

Link copied to clipboard
open fun setupLoop()

Runs in a loop after the op mode is initialized.

Link copied to clipboard
fun sleep(p0: Long)
Link copied to clipboard
override fun start()
Link copied to clipboard
override fun stop()
Link copied to clipboard
open fun updateTelemetry(p0: Telemetry)
Link copied to clipboard
open fun waitForStart()

Properties

Link copied to clipboard
var actions: MutableList<TimeRed.ActionSet>
Link copied to clipboard
val gamepad1: Gamepad
Link copied to clipboard
val gamepad2: Gamepad
Link copied to clipboard
val hardwareMap: HardwareMap
Link copied to clipboard
val internalOpModeServices: OpModeServices
Link copied to clipboard
val msStuckDetectInit: Int
Link copied to clipboard
val msStuckDetectInitLoop: Int
Link copied to clipboard
val msStuckDetectLoop: Int
Link copied to clipboard
val msStuckDetectStart: Int
Link copied to clipboard
val msStuckDetectStop: Int
Link copied to clipboard
val telemetry: Telemetry
Link copied to clipboard
val time: Double