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
open class NextAnalogInput @JvmOverloads constructor(initializer: () -> AnalogInput, val customTransformation: (Double) -> Double = { n: Double -> n }, maxVoltage: Voltage = 3.3.volts) : AnalogFeedback

A wrapper around an AnalogInput that provides convenient access to raw voltage readings as well as a normalized, optionally transformed value.

Link copied to clipboard
class NextColorDistanceSensor @JvmOverloads constructor(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 @JvmOverloads constructor(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.