FRC-Team-1710 / FRC1710-2018

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

Constants referenced in the MoveLiftToPosition Command do not exist #16

Closed Team1710CTO closed 6 years ago

Team1710CTO commented 6 years ago
`protected void initialize() {      
    if(_level == 0) {
        setPoint = Constants.distance1;
    }else if(_level == 1) {
        setPoint = Constants.distance2;
    }else if(_level == 2) {
        setPoint = Constants.distance3;
    }else if(_level == 3) {
        setPoint = Constants.distance4;
    }
}`

The names of these constants have changed, please update them.

NathanielDiehl commented 6 years ago

fix the constant names

if(_level == 0) { setPoint = Constants.intake; }else if(_level == 1) { setPoint = Constants.switchPosition; }else if(_level == 2) { setPoint = Constants.lowLevel; }else if(_level == 3) { setPoint = Constants.highLevel;