Tongu SRX
class TonguSRX(channel: Int, monguConfig: PWMTalonSRXConfig.() -> Unit = {}) : PWMTalonSRX, Mongu<PWMTalonSRXConfig>
PWMTalonSRX motor implementation that extends PWMTalonSRX and implements the Mongu interface.
This class provides direct access to PWMTalonSRX-specific functionality while implementing the common Mongu interface. It provides PWM control for the motor.
Usage Examples:
// Create a PWMTalonSRX motor
val motor = TonguSRX(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.