Good Afternoon to you all, I hope every at worlds right now is ready to go. 15800A will be joining you all Saturday. Anyway, my code for my Auton Selection hasn’t been working. here is the code. Ive checked that the limit switch is plugged in properly, and that the Limit Switch is defined correctly in Devices.
Thank you!
Will | 15800A
// Auton selector
if(AutonSelector.pressing()){
Brain.Screen.setPenColor(black);
AutonVar=AutonVar+1.0;
if(AutonVar>8){
AutonVar=1;
}
}
if(AutonVar==1){
Brain.Screen.setPenColor(black);
Brain.Screen.setFont(monoL);
Brain.Screen.setCursor(4,1);
Brain.Screen.print("NoAuton"); //1
}
if(AutonVar==2){
Brain.Screen.setFont(monoL);
Brain.Screen.setCursor(4,1);
Brain.Screen.print("FarSafe"); //2
}
if(AutonVar==3){
Brain.Screen.setFont(monoL);
Brain.Screen.setCursor(4,1);
Brain.Screen.print("Far Aggressive"); //3
}
if(AutonVar==4){
Brain.Screen.setFont(monoL);
Brain.Screen.setCursor(4,1);
Brain.Screen.print("Close AWP"); //4
}
if(AutonVar==5){
Brain.Screen.setFont(monoL);
Brain.Screen.setCursor(4,1);
Brain.Screen.print("Close Elims"); //5
}
if(AutonVar==6){
Brain.Screen.setFont(monoL);
Brain.Screen.setCursor(4,1);
Brain.Screen.print("Close Safe"); //6
}
if(AutonVar==7){
Brain.Screen.setFont(monoL);
Brain.Screen.setCursor(4,1);
Brain.Screen.print("Skills"); //7
}
if(AutonVar==8){
Brain.Screen.setFont(monoL);
Brain.Screen.setCursor(4,1);
Brain.Screen.print("MotorTest"); //8
}
/////////////