update

fun update()

Updates the motor power based on the current active control mode.

This method should be called periodically (e.g., in an EventLoop) to recalculate closed-loop controllers.