Preferably it would be the last line (with it at the first, theres a 20ms delay before any actions are performed)
Your indenting for everything after "wait" is now wrong
AUTOS should not be capitalized (and should be descriptive: "AutonMode", "SelectedAutonMode", "AutonEnum", etc)
turn and turn2 still need to be turned into feedback loops but for now rename them to turnLeft and turnRight and make one function- turn- that if gyro < desired than turnLeft(angle) else turnRight(angle)
capitalization schemes are wrong in Robot.java (
http://java.about.com/od/javasyntax/...onventions.htm)
Code:
if (autoMethod == Defines.AUTOS.AUTO_ONE) {
return;
} else if (autoMethod == Defines.AUTOS.AUTO_MOVE) {
return;
} else if (autoMethod == Defines.AUTOS.AUTO_TWORED) {
return;
} else if (autoMethod == Defines.AUTOS.AUTO_TWOBLUE) {
return;
}
this block of code is rather... erm...
Why is your wait function inside of a while(true) loop?