Package-level declarations

Types

Link copied to clipboard
class TalonFXConfig : MonguConfig<TalonFX>

Configuration class for TalonFX motors.

Link copied to clipboard
class TalonFXControls(val positionVoltage: PositionVoltage = PositionVoltage(0.0), val velocityVoltage: VelocityVoltage = VelocityVoltage(0.0)) : MotorControls<TalonFX>

Control implementations for TalonFX motors.

Properties

Link copied to clipboard
val MonguFX.acceleration: Double

Retrieves the current acceleration of the TalonFX motor.

Link copied to clipboard
val MonguFX.deviceID: Int

Retrieves the device ID of the underlying TalonFX motor.

Link copied to clipboard
val MonguFX.isConnected: Boolean

Indicates whether the TalonFX motor is currently connected.

Link copied to clipboard

Retrieves the stall current of the TalonFX motor.

Link copied to clipboard
val MonguFX.motorVoltage: Double

Retrieves the motor voltage of the TalonFX motor.

Link copied to clipboard
val MonguFX.pingu: Pingu

Retrieves the custom pingu property from the TalonFXConfig configuration.

Link copied to clipboard
val MonguFX.position: Double

Retrieves the current position of the TalonFX motor.

Link copied to clipboard
val MonguFX.rotorPosition: Double

Retrieves the rotor position of the TalonFX motor.

Link copied to clipboard
val MonguFX.rotorVelocity: Double

Retrieves the rotor velocity of the TalonFX motor.

Link copied to clipboard
val MonguFX.statorCurrent: Double

Retrieves the stator current of the TalonFX motor.

Link copied to clipboard
val MonguFX.supplyCurrent: Double

Retrieves the supply current of the TalonFX motor.

Link copied to clipboard
val MonguFX.supplyVoltage: Double

Retrieves the supply voltage of the TalonFX motor.

Link copied to clipboard
val MonguFX.velocity: Double

Retrieves the current velocity of the TalonFX motor.

Functions

Link copied to clipboard
fun MonguFX.resetPosition(position: Double = 0.0): StatusCode

Resets the position of the TalonFX motor to the specified value.

Link copied to clipboard
fun MonguFX.setControl(control: ControlRequest): StatusCode

Sets the ControlRequest for the underlying TalonFX motor.