How to have the intake motors run at the same time as the drivetrain during autonomous?

How do we program in the autonomous to have the intake motors run while the drivetrain motors are moving the robot forward?

In your autonomous program set the motors to drive and then on the next line have the intake motors turn on

without having them blocking

Blocking what?
20 char

Could you provide some example text? is it as simple as just putting the text the next line down? Or will it run until the condition is met and then move to the next line?

Demo code:

intakes.spin(fwd);
drive(1);
intakes.stop();
3 Likes

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