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 state of the intake's pitch/wrist position #20

Closed Team1710CTO closed 6 years ago

Team1710CTO commented 6 years ago

Similar to how nathan implemented a method that returned a string of the current lift position (in issue #14) we need to implement a method in the Intake class that will return maybe "normal", "launch", or "start" depending on the current setpoint.

mollymaples commented 6 years ago

I made a new method that would say what is happening with the wrist.

public static String getWristPosition() {
        if (wristPosition == Constants.wristUp) {
            return "Keeping cube in";
        } else if (wristPosition == Constants.wristLaunch) {
            return "Launch cube upward, at angle";
        } else if (wristPosition == Constants.wristDown) {
            return "Wrist is parallell to the ground";
        } else {
            return "changing position. Or broken";
        }
    }