FRC-Team-1710 / FRC1710-2018

Team 1710's robot code for 2018.
2 stars 0 forks source link

Make getter Methods in the intake class that return the current position of the wrist encoder #19

Closed Team1710CTO closed 6 years ago

Team1710CTO commented 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.

mollymaples commented 6 years ago

Made a wrist encoder and sensor method. public static int getWristEncPosition() { return RobotMap.wrist.getSelectedSensorPosition(0);