We are trying to code our robot to preform two task at one time. In the recent past a commas separating the code would function as an “and” command to perform both lines of code at the same time. Since the latest software update, the code is running sequential and not simultaneously. The following is our code. PLEASE HELP.
Lift.spinFor(reverse,1750, degrees),
Drivetrain.driveFor(forward, 39,inches);
I could be wrong, but this is how I get my four drive motors to run simultaneously:
Lift.spinFor(reverse,1750,degrees,false);
Drivetrain.driveFor(forward,39,inches);
It will return the first command as false, and run the two simultaneously. Let me know if this works!
9 Likes
YOU ARE AWESOME! It worked. I really appreciate your quick response.
1 Like
You should mark that as the solution. It helps keep the forums clean.
2 Likes