Calling motors at the same time C++

I am having trouble calling all motors (spinning motors all at once) in my 6-motor drivetrain at the same time during the autonomous period in C++. My code so far is:

void autodrive(){
L1.spinFor(reverse,600,degrees)
L2.spinFor(reverse,600,degrees)
L3.spinFor(reverse,600,degrees)
R1.spinFor(reverse,600,degrees)
R2.spinFor(reverse,600,degrees)
R3.spinFor(reverse,600,degrees)
}

I then call it but it moves every motor individually.

Someone else had a similar issue before read this post

It has to do with passing a parameter called waitForCompletion and setting it to false.

Thank you so much! This was really helpful!

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.