fromRobot static method

Encoder fromRobot(
  1. RobotClient robot,
  2. String name
)

Get the Encoder named name from the provided robot.

final myEncoder = Encoder.fromRobot(myRobotClient, "my_encoder");

For more information, see Encoder component.

Implementation

static Encoder fromRobot(RobotClient robot, String name) {
  return robot.getResource(Encoder.getResourceName(name));
}