fromRobot static method
- RobotClient robot,
- 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));
}