upload this into vs code to view and run
When I am running autonomous in autons.cpp in the autonomous blue_negative, everything else is running but the intake. Immediately after I switch to driver, it works, but I can’t figure out why it’s not working.
ps. I am using the pros extension and ez-template
I haven’t used ez-template before so take my answer with a grain of salt, but looking at the docs you need to wait for the drive to finish. Right now you start the intake, tell the robot to start driving, then instantly stop the intake before the drive finishes, meaning it never gets a chance to move
This is probably what you intended:
Intake.move(127);
chassis.pid_drive_set(30_in, 96);
chassis.pid_wait(); // <-- this line means "wait for the drivetrain to finish what it was told to do"
Intake.move(0);