I have programmed my LCD code chooser but when i go to my 1st, 2nd, or 3rd it just goes through the autonomous code and doesn’t let me move the robot. When i do the 4th one it goes through and then lets me go and move the robot from the joystick. My question is how do i program this to make it work with 1st, 2nd, and 3rd???
Post the code so we can help you.
its to long to post its 350+ lines
here it is in a word version
Program.docx (14.5 KB)
The reason that you driver code runs after the autonomous selection is your placing of the “break” statements within the switch statement. For the final case (case 3) you do not have a break, the code then “falls through” to the default case and then into the driver code (which is essentially all part of your default case as you have an infinite loop). case 0, 1 and 2 have a (correctly placed) break statement and the code executes whatever is after the switch statement, which is nothing at all. Here’s a revised version. This code will not work at competition, it is not structured using the competition template.
nleos.zip (3.03 KB)
ok so know i have another problem when i downloaded the program my battery voltages do not change unless we turn off the robot. How can we fix this
ok so know i have another problem when i downloaded the program my battery voltages do not change unless we turn off the robot. How can we fix this