PWMTalonSRXConfig

class PWMTalonSRXConfig : MonguConfig<PWMTalonSRX>

Configuration class for PWMTalonSRX motors.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val controls: PWMTalonSRXControls

The motor controls instance containing all control lambdas for PWMTalonSRX.

Link copied to clipboard

Enables or disables deadband elimination for the motor. When true, small input values are ignored to reduce motor jitter.

Link copied to clipboard

Indicates whether the motor direction is inverted.

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

Lambda function for controlling the motor using a position value.

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

Lambda function for controlling the motor using PWM (Pulse Width Modulation).

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

Lambda function to stop the motor.

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

Lambda function for controlling the motor using a velocity value.

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

Lambda function for controlling the motor using voltage.

Functions

Link copied to clipboard
open override fun applyTo(motor: PWMTalonSRX)

Applies the configuration to the given PWMTalonSRX motor.