Jones

abstract class Jones<T : MecanumDrivetrain>(hardwareMap: HardwareMap, val drivetrain: T) : RobotWithMecanumDrivetrain<T>

Jones is a robot for the 2025-2026 DECODE FTC Season.

Parameters

hardwareMap

for initializing hardware components

T

the type of mecanum drivetrain

See also

Inheritors

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

the AprilTag aiming utility for aligning with targets using AprilTags

Link copied to clipboard

the classifier attachment for classifying and releasing artifacts

Link copied to clipboard
open override val drivetrain: T

the mecanum drivetrain used by the robot

Link copied to clipboard

the launcher attachment for firing artifacts

Link copied to clipboard

the pusher attachment for pushing artifacts into the launcher

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

the vision portal for processing camera input

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 fireAllStoredArtifacts(targetVelocity: Double = launcherTargetVelocity): Action

Fire all stored artifacts using the launcher and classifier at targetVelocity.

Link copied to clipboard
context(telemetry: Telemetry)
fun getDetectedAprilTags(id: Int? = null): List<AprilTagDetection>

Get detected AprilTags from the webcam using the aprilTag processor.

Link copied to clipboard
context(telemetry: Telemetry)
fun getDistanceToObstacle(): Double

Get distance to an obstacle from the distance sensor.

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
fun servo(name: String): Lazy<Servo>
Link copied to clipboard
context(telemetry: Telemetry)
open override fun update()