We are trying to figure out how to run two motors simultaneously in our autonomous while the robot completes other commands. So far, we are only able to get the two motors running but not the rest of the code. Attached is what we tried last (we are sure it is completely wrong). Thank you!
Do you actually want them to run for exactly 10 seconds? Then do a broadcast to another thread to do that. If you want the motors to run until you get to a spot in the code, do this: