PWMTalonSRXControls

class PWMTalonSRXControls : MotorControls<PWMTalonSRX>

Control implementations for PWMTalonSRX motors.

Provides control lambdas for PWM and voltage control modes.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val positionControl: (PWMTalonSRX, Double) -> Unit? = null

Lambda for position control. Not supported for PWMTalonSRX, so this is null.

Link copied to clipboard
open override val pwmControl: (PWMTalonSRX, Double) -> Unit

Lambda for PWM control. Sets the output of the PWMTalonSRX motor to the specified value.

Link copied to clipboard
open override val stop: (PWMTalonSRX) -> Unit

Lambda to stop the PWMTalonSRX motor.

Link copied to clipboard
open override val velocityControl: (PWMTalonSRX, Double) -> Unit? = null

Lambda for velocity control. Not supported for PWMTalonSRX, so this is null.

Link copied to clipboard
open override val voltageControl: (PWMTalonSRX, Double) -> Unit

Lambda for voltage control. Sets the voltage output of the PWMTalonSRX motor to the specified value.