Package-level declarations

Types

Link copied to clipboard
sealed interface Encoder
Link copied to clipboard
interface EncoderGroup
Link copied to clipboard
class ImuInitMessage(val deviceName: String, val beginInit: Long, val endInit: Long, val timedOut: Boolean)
Link copied to clipboard
class LazyHardwareMapImu @JvmOverloads constructor(hardwareMap: HardwareMap, name: String, orientation: ImuOrientationOnRobot, timeoutMs: Int = 500) : LazyImu
Link copied to clipboard
interface LazyImu
Link copied to clipboard
class LynxFirmwareVersion(val major: Int, val minor: Int, val eng: Int)

Parsed representation of a Lynx module firmware version.

Link copied to clipboard
class LynxQuadratureEncoderGroup(val modules: List<LynxModule>, val encoders: List<Encoder>) : EncoderGroup
Link copied to clipboard
class OTOSEncoderGroup(val otos: SparkFunOTOS) : EncoderGroup
Link copied to clipboard
class OTOSIMU(val otos: SparkFunOTOS) : LazyImu, IMU, HardwareDevice
Link copied to clipboard
class OverflowEncoder(val encoder: RawEncoder) : Encoder
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class PinpointIMU(val pinpoint: PinpointLocalizer) : IMU, LazyImu
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class PositionVelocityPair(val position: Int, val velocity: Int, val rawPosition: Int, val rawVelocity: Int)
Link copied to clipboard
class RawEncoder(val motor: DcMotorEx) : Encoder
Link copied to clipboard
Link copied to clipboard
class WrappingEncoder(val encoder: Encoder, val cpr: Int) : Encoder

An encoder that wraps its position to [0, cpr). Useful for swerve pod rotations.

Properties

Link copied to clipboard
val DcMotorSimple.Direction.multiplier: Int
Link copied to clipboard
val DcMotorSimple.Direction.pinpointDirection: GoBildaPinpointDriver.EncoderDirection

Functions

Link copied to clipboard
Link copied to clipboard

Parses Lynx module firmware version string into structured version object. Returns null for null argument or upon error.

Link copied to clipboard
Link copied to clipboard
fun throwIfModulesAreOutdated(hardwareMap: HardwareMap)

Ensure all of the Lynx modules attached to the robot satisfy the minimum requirement.

Link copied to clipboard
fun Pose2d.toOTOSPose(): SparkFunOTOS.Pose2D
Link copied to clipboard
fun SparkFunOTOS.Pose2D.toRRPose(): Pose2d