GabeRR

class GabeRR(hardwareMap: HardwareMap, initialPose: Pose2d = Pose2d(Vector2d(0.0, 0.0), 0.0)) : Gabe<MecanumDriveWithRR>

Gabe with MecanumDriveWithRR drivetrain.

Parameters

hardwareMap

The FTC hardware map.

initialPose

The initial pose of the robot.

Constructors

Link copied to clipboard
constructor(hardwareMap: HardwareMap, initialPose: Pose2d = Pose2d(Vector2d(0.0, 0.0), 0.0))

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
open override val drivetrain: MecanumDriveWithRR

the mecanum drivetrain used by the robot

Link copied to clipboard

the launcher attachment for firing artifacts

Link copied to clipboard
val rgb: RevBlinkinLedDriver

the LED driver for controlling RGB LEDs on the robot

Link copied to clipboard
val state: StateFlow<RobotState>
Link copied to clipboard

the storage attachment for holding and releasing artifacts

Functions

Link copied to clipboard
fun analogInput(name: String): Lazy<AnalogInput>
Link copied to clipboard
fun colorSensor(name: String): Lazy<NormalizedColorSensor>
Link copied to clipboard
fun crServo(name: String): Lazy<CRServo>
Link copied to clipboard
fun distanceSensor(name: String): Lazy<Rev2mDistanceSensor>
Link copied to clipboard
fun fire(amount: Int): Action

Fire amount artifacts.

Link copied to clipboard
context(telemetry: Telemetry)
fun getDetectedAprilTags(id: Int? = null): Array<out HuskyLens.Block>

Get detected AprilTags from HuskyLens.

Link copied to clipboard
fun huskyLens(name: String): Lazy<HuskyLens>
Link copied to clipboard
fun imu(name: String): Lazy<IMU>
Link copied to clipboard
fun lazyImu(name: String, orientation: RevHubOrientationOnRobot): Lazy<LazyImu>
Link copied to clipboard
fun led(name: String): Lazy<LED>
Link copied to clipboard
fun ledDriver(name: String): Lazy<RevBlinkinLedDriver>
Link copied to clipboard
fun motor(name: String): Lazy<DcMotor>
Link copied to clipboard
fun motorEx(name: String): Lazy<DcMotorEx>
Link copied to clipboard
context(telemetry: Telemetry)
fun pointTowardsAprilTag(allianceColor: AllianceColor): Action

Points the robot towards the AprilTag with the specified ID based on allianceColor.

Link copied to clipboard
fun servo(name: String): Lazy<Servo>
Link copied to clipboard
context(telemetry: Telemetry)
open override fun update()