RobotController

Centralized access to FTC hardware/runtime context and Lynx hub telemetry.

Properties

Link copied to clipboard
open val adjacencyRule: AdjacencyRule<OnCreateEventLoop, Graph<OnCreateEventLoop>>
Link copied to clipboard

Current Control Hub auxiliary voltage.

Link copied to clipboard

Blaze has been enabled

Link copied to clipboard
@get:JvmName(name = "controlHub")
val controlHub: NextLynxModule

The parent NextLynxModule, typically the Control Hub.

Link copied to clipboard
@get:JvmName(name = "expansionHub")
val expansionHub: NextLynxModule

The first attached Expansion Hub.

Link copied to clipboard
@get:JvmName(name = "hardwareEventLoop")
val hardwareEventLoop: EventLoop

Event loop for hardware access and updates.

Link copied to clipboard
@get:JvmName(name = "hardwareMap")
val hardwareMap: HardwareMap

The op mode HardwareMap from the current event loop.

Link copied to clipboard

Current Control Hub input voltage.

Link copied to clipboard
@get:JvmName(name = "servoHubs")
val servoHubs: List<NextLynxModule>

All Servo Hubs attached to the robot.

Link copied to clipboard

Current Control Hub temperature.

Functions

Link copied to clipboard
open override fun onCreateEventLoop(context: Context, ftcEventLoop: FtcEventLoop)

Lifecycle callback used to initialize runtime context for hardware access.

Link copied to clipboard
open override fun onOpModePostStop(opMode: OpMode?)

Discards all cached hardware objects so they are re-initialized in the next op mode.

Link copied to clipboard
open override fun onOpModePreInit(opMode: OpMode?)
Link copied to clipboard
open override fun onOpModePreStart(opMode: OpMode?)