RobotWithMecanumDrivetrain

open class RobotWithMecanumDrivetrain<T : MecanumDrivetrain>(hardwareMap: HardwareMap, val drivetrain: T) : RobotWithDrivetrain<T>

A base class for robots that have a mecanum drivetrain.

Parameters

T

The type of mecanum drivetrain the robot has.

hardwareMap

The hardware map of the robot.

Constructors

Link copied to clipboard
constructor(hardwareMap: HardwareMap, drivetrain: T)

Properties

Link copied to clipboard
open override val drivetrain: T

The mecanum drivetrain of the robot.

Link copied to clipboard
val state: StateFlow<RobotState>

Functions

Link copied to clipboard
fun analogInput(name: String): Lazy<AnalogInput>

Helper function to create an AnalogInput property delegate.

Link copied to clipboard
fun colorSensor(name: String): Lazy<NormalizedColorSensor>

Helper function to create a NormalizedColorSensor property delegate.

Link copied to clipboard
fun crServo(name: String): Lazy<CRServo>

Helper function to create a continuous rotation servo property delegate.

Link copied to clipboard
fun distanceSensor(name: String): Lazy<Rev2mDistanceSensor>

Helper function to create a Rev2mDistanceSensor property delegate.

Link copied to clipboard
fun huskyLens(name: String): Lazy<HuskyLens>

Helper function to create a HuskyLens property delegate.

Link copied to clipboard
fun imu(name: String): Lazy<IMU>

Helper function to create an IMU property delegate.

Link copied to clipboard
fun lazyImu(name: String, orientation: RevHubOrientationOnRobot): Lazy<LazyImu>

Helper function to create a lazy IMU property delegate.

Link copied to clipboard
fun led(name: String): Lazy<LED>

Helper function to create an LED property delegate.

Link copied to clipboard
fun ledDriver(name: String): Lazy<RevBlinkinLedDriver>

Helper function to create an LED driver property delegate.

Link copied to clipboard
fun motor(name: String): Lazy<DcMotor>

Helper function to create a motor property delegate.

Link copied to clipboard
fun motorEx(name: String): Lazy<DcMotorEx>

Helper function to create a motorEx property delegate.

Link copied to clipboard
fun servo(name: String): Lazy<Servo>

Helper function to create a servo property delegate.

Link copied to clipboard
context(telemetry: Telemetry)
open override fun update()

Updates the robot.