Closed Team1710CTO closed 6 years ago
Similar to how we have methods like Drive.getLeftVelocity() that would return to us the (double) current velocity of the left side of the robot, we need to implement a method that returns the position of the encoder hooked up to the wrist motor.
Drive.getLeftVelocity()
Made a wrist encoder and sensor method. public static int getWristEncPosition() { return RobotMap.wrist.getSelectedSensorPosition(0);
public static int getWristEncPosition() { return RobotMap.wrist.getSelectedSensorPosition(0);
Similar to how we have methods like
Drive.getLeftVelocity()
that would return to us the (double) current velocity of the left side of the robot, we need to implement a method that returns the position of the encoder hooked up to the wrist motor.