Single Line of Code Not Working

void autonomous(void) {
Drivetrain.setDriveVelocity(100, percent);
Drivetrain.driveFor(forward, 55, inches);
claw.spinFor(forward, 375, degrees);
Drivetrain.driveFor(reverse, 20, inches);

Sorry for not formatting:(

The first 3 lines of auton work but then the last line(driving reverse refues to happen)
We are at a comp so help would be appreciated.

The third line default is to wait for completion. That is the reason the brain is waiting there. You may want to change it to false. And add wait after the third line.

claw.spinFor(forward, 375, degrees, false);
wait( 200, timeUnits::msec );

Or you can set timeout as claw.setTimeout(200, msec);


Thank you so much! We are queuing right now so we will test the code a little later