Package-level declarations

Input device wrappers: NextColorDistanceSensor, NextDigitalSensor, NextDistanceSensor, NextIMU, and NextPinpoint (goBilda odometry computer) — the latter two return control module geometry types (Pose2d, Rotation2d, PoseVelocity2d).

Types

Link copied to clipboard
class NextColorDistanceSensor(colorInitializer: () -> NormalizedColorSensor, distanceInitializer: () -> DistanceSensor? = null)

Combines a color sensor and an optional distance sensor into one class. Call update each loop to read the hardware. Use isColor to check against a dev.nextftc.hardware.sensors.colors.ColorProfile.

Link copied to clipboard
class NextDigitalSensor(initializer: () -> DigitalChannel, inverted: Boolean = true)

Lightweight wrapper around a DigitalChannel for reading digital sensors like limit switches, magnetic switches, and beam breaks.

Link copied to clipboard
class NextDistanceSensor(initializer: () -> DistanceSensor)

Lightweight wrapper for a distance sensor that caches the last reading. Call update in periodic to read the hardware.

Link copied to clipboard
class NextIMU(initializer: () -> IMU)

A wrapper for the FTC IMU that uses lazy initialization.

Link copied to clipboard
class NextPinpoint(initializer: () -> GoBildaPinpointDriver)

A wrapper for the GoBilda Pinpoint Odometry Computer that uses lazy initialization.