Skip to content

Hardware Property Delegates

Hardware property delegates exist in the Robot base class to help get hardware classes from the FTC HardwareMap.

DelegateTypeExample
motorDcMotorval lift by motor("lift")
motorExDcMotorExval shooter by motorEx("shooter")
servoServoval claw by servo("claw")
crServoCRServoval intake by crServo("intake")
huskyLensHuskyLensval huskyLens by huskyLens("huskyLens")
distanceSensorRev2mDistanceSensorval lidar by distanceSensor("lidar")
colorSensorNormalizedColorSensorval classifier by colorSensor("classifier")
imuIMUval imu by imu("imu")
lazyImuLazyImuval imu by lazyImu("imu", orientation)
ledLEDval indicator by led("indicator")
ledDriverRevBlinkinLedDriverval rgb by ledDriver("rgb")
analogInputAnalogInputval potentiometer by analogInput("potentiometer")