FRC-Team-1710 / FRC1710-2018

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

Make a getter method to return the current position of the lift. #14

Closed Team1710CTO closed 6 years ago

Team1710CTO commented 6 years ago

All this method needs to do is get the current setpoint, and return a string of what position the lift is at. For example, if the lift setpoint was at the greatest value, this getter method would return "scale height". We will use this method for feedback on the driver station dashboard.

NathanielDiehl commented 6 years ago

compleated

public static String getLiftPostion() { if(setPoint == distance1) { return "intake"; }else if(setPoint == distance2) { return "swich"; }else if(setPoint == distance3) { return "low level"; }else if(setPoint == distance4){ return "high level"; }else { return "lifting"; } }