Auton stopping while code not ending

For some reason, my robot stops in the middle of our program while running autonomous skills. It also slowed down when I tested It. Does anyone know what is going on?

Are you using C++, and can you send a screenshot of the code?

Hard to tell without seeing your code or knowing any more context, but usually this type of issue is caused by telling a motor to spin a certain amount and it not being able to do so. Thus the code never continues to the next line.

Some methods to resolve this include adding a false to the end of a spinFor command to make it non blocking or adding a timeout to the motor using a set timeout command.

Sorry but I cannot send a screenshot of the code right now, but I am using C++

What is the code for the set timeout command for the Drivetrain?