TeamCode / org.firstinspires.ftc.teamcode.sensing

Package org.firstinspires.ftc.teamcode.sensing

Types

Gyro

interface Gyro

Public interface representing the set of methods every single gyro sensor is guaranteed to implement. This makes it useful for creating op modes that work for any gyro sensors other than the IMUGyro.

IMUGyro

class IMUGyro : Gyro

A Gyro instance that uses the REV Robotic Expansion's built-in gyro sensor (IMU) to obtain measurements.

MineralDetection

open class MineralDetection

Wrapper class for Vuforia and TFOD. Improves code reusability. Unlike most other classes, you usually do not call standard; instead, you use its constructor.

MineralKnocker

open class MineralKnocker

This helper class was intended to assist in the creation of mineral knocking op modes. Since every use case is different, this class has been deprecated. See MineralKnockerOpMode for an example of how it was used. Do not use this class.

Vision

open class Vision : MineralDetection

This class takes care of all your vision needs. Wrapper class for Vuforia that extends MineralDetection. Improves code reusability.

IMPORTANT: Use of the Vision class requires a Vuforia auth key. To learn how to set one up, browse to the VuforiaAuthKey class.

VuforiaAuthKey

open class VuforiaAuthKey

Helper class for retrieving the Vuforia authentication key used to power MineralDetection and Vision. This class is automatically called by MineralDetection and Vision.

For security reasons, we do not include the Vuforia auth key in the repository. As such, you will have to add one yourself.

Browse to TeamCode/src/main/res/raw, and make a new file called "vuforiaauthkey.txt". Paste your Vuforia authentication key into there.

TITANIUM KNIGHTS MEMBERS: To get the authentication key, contact Anthony Li or Edward Li.