Talon FXControls
class TalonFXControls(val positionVoltage: PositionVoltage = PositionVoltage(0.0), val velocityVoltage: VelocityVoltage = VelocityVoltage(0.0)) : MotorControls<TalonFX>
Control implementations for TalonFX motors.
Provides control lambdas for PWM, voltage, position, and velocity control modes.
Constructors
Properties
Link copied to clipboard
Lambda for position control. Sets the position of the TalonFX motor to the specified value.
Link copied to clipboard
Pre-allocated PositionVoltage control object for position control mode.
Link copied to clipboard
Lambda for PWM control. Sets the output of the TalonFX motor to the specified value.
Link copied to clipboard
Lambda for velocity control. Sets the velocity of the TalonFX motor to the specified value.
Link copied to clipboard
Pre-allocated VelocityVoltage control object for velocity control mode.
Link copied to clipboard
Lambda for voltage control. Sets the voltage of the TalonFX motor to the specified value.