MecanumDrivetrain

abstract class MecanumDrivetrain : Drivetrain

A drivetrain implementation for robots with mecanum wheels.

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Link copied to clipboard
val state: StateFlow<AttachmentState>

Functions

Link copied to clipboard

Checks if the attachment is currently busy (Running).

Link copied to clipboard

Checks if the attachment is currently in a faulted state.

Link copied to clipboard

Ensures the attachment is in the Idle state, throwing an exception if not.

Link copied to clipboard
abstract fun setDrivePowers(powers: PoseVelocity2d)
Link copied to clipboard
open fun stop()

Stops the attachment and resets its state to Idle.

Link copied to clipboard
context(telemetry: Telemetry)
open fun update()

Updates the telemetry with the current state of the attachment.