I’m not entirely sure, but my teammate (technically on the A team) had a similar issue and said something about limiting it to a max of 127 or something like that. When we went above that our robot went rogue and shot one of the lenses out of my other teammate’s (also A team) glasses!
There’s nothing fundamentally wrong with the code you posted, the only way to know would be to see the whole project. What exactly doesn’t work ? No motor movement at all ?
You have three while(true){} loops. The second is inside the first. So you run through checking your controller axes a single time and then get stuck inside the second while(true){}. The third does the same to the second.
up to the second while(true){}, with the rest of the stuff.
Delete the first and third while(true){, the #include “robot-config.h” inside of the first one (you already have this at the top), the last task::sleep(20);, and their closing }s.
No, you still had multiple while loops and seemed to have duplicated robot config somehow.
Have a look at this (I added back your arcade code) 7517J CODE_rev1.vex (9.5 KB)
I know I am asking a lot of questions, but will this code work if a competition switch is turned to driver control? Or is it there a different line that i have to put in? I’m really sorry for all of these questions
But thanks everyone for all the help!