I’m trying to get my motor named Catapult - that I’ve already configured as a motor - to spin continually when I press X on my controller - which is also configured. But my code isn’t working. Can someone please tell me what the problem is and how to fix it?
Thanks
Ignore repeated parts like wait(5, msec); and return 0; at the bottom and top of the screenshots.
I personally think that the first return or the second one is making it unable to work properly you should try to delete one and see if it works or not.
I said ignore them because they are the same line of code that ended up at both the top and the bottom of the screenshots. There is only one return0; in my code.
Oh sorry about that.
Then my idea is that your drive loop is taking over all of the code. Basically, your loop for the catapult spin is not running.
There 1 solution I’m thinking about right now:
You could try to put all of your while true loop into 1 while true loop instead of 3 separate while loop.
also why is there a while(Competition.isAutonomous())
in the ondriver_drivercontrol_0
function?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.