PWMSparkMaxControls

class PWMSparkMaxControls : MotorControls<PWMSparkMax>

Control implementations for PWMSparkMax 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: (PWMSparkMax, Double) -> Unit? = null

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

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

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

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

Lambda to stop the PWMSparkMax motor.

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

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

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

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