Sparku Max
class SparkuMax(channel: Int, monguConfig: PWMSparkMaxConfig.() -> Unit = {}) : PWMSparkMax, Mongu<PWMSparkMaxConfig>
PWMSparkMax motor implementation that extends PWMSparkMax and implements the Mongu interface.
This class provides direct access to PWMSparkMax-specific functionality while implementing the common Mongu interface. It provides PWM control for the motor.
Usage Examples:
// Create a PWMSparkMax motor
val motor = SparkuMax(0)
motor.configure {
inverted = true
deadbandElimination = false
}
motor.move(0.5) // PWM controlContent copied to clipboard
Parameters
channel
The PWM channel for this motor controller.
mongu Config
A lambda that applies initial configuration settings to the motor.