configure

fun configure(block: MonguConfig<out T>.() -> Unit = {})

Configures the motor using a DSL-style configuration block.

mongu.configure {
this as PWMTalonSRXConfig // Cast to specific config type
inverted = true
deadbandElimination = false
}

Parameters

block

A lambda that applies configuration settings to the motor.

Throws

If the motor type is unsupported.