Servos
To control your servos, you can use NextFTC's ServoEx
class. A ServoEx
wraps a Servo
and implements Positionable
.
kotlin
ServoEx { servo }
ServoEx(servo)
ServoEx("servo_name")
Additionally, you can pass a position caching tolerance (defaults to 0.01):
kotlin
ServoEx(cacheTolerance) { servo }
ServoEx(servo, cacheTolerance)
ServoEx("servo_name", cacheTolerance)