NextServo
Parameters
A function returning the backing ServoImplEx. It will be invoked lazily the first time the servo is accessed.
Tolerance used by the Caching delegate for position updates; defaults to 0.01.
The initial direction of the servo defined by the user as a NextMotor.Direction which defaults to NextMotor.Direction.FORWARD
Constructor to create a NextServo using a LynxModule and port number.
Example:
val servo = NextServo(RobotController.controlHub, 0) // Creates a NextServo on the Control Hub port 0Parameters
The Lynx Module, see RobotController.controlHub, RobotController.expansionHub, and RobotController.servoHubs
The servo port (in the range 0, 5)
Tolerance used by the Caching delegate for position updates; defaults to 0.01.
The initial direction of the servo defined by the user as a NextMotor.Direction which defaults to NextMotor.Direction.FORWARD
Constructor to create a NextServo using configuration name
Example:
// Creates a NextServo with the config name: "armServo"
val servo = NextServo("armServo")Parameters
The configuration name for the servo, usually found on the Driver Station
Tolerance used by the Caching delegate for position updates; defaults to 0.01.
The initial direction of the servo defined by the user as a NextMotor.Direction which defaults to NextMotor.Direction.FORWARD