Problem with 15 second auto

We had a 15 second auto on block code that worked really well. We replaced our robot brain due to a bad USB port. After we replaced the brain the auto still worked but then randomly at one of our completions the auto stopped working. The rest of the robot code still worked. We decided to switch our robot code over to vex pros to solve the problem. We got all of the code rewritten but now the auto just drives forward for the whole 15 seconds. It isn’t supposed to do that and we can’t figure out the problem. Has anyone else ran into this problem and how did you fix it?

Here is the code

#include "main.h"

#include "pros/misc.h"

#include "pros/rtos.hpp"

using namespace pros;

using namespace pros::literals;





Controller controller( E_CONTROLLER_MASTER);

MotorGroup left_motors ({-9, -10});

MotorGroup right_motors({1, 2});

MotorGroup wholeBot ({-9, -10, 1, 2});

MotorGroup intake({12, -19});

MotorGroup Ringintake({11, -20});

adi::DigitalOut pneumatics(3);

const double MILLIMETER = (360 * (60.0/48.0)) / 319.185813494;





void move_milli(int milli, int percentage)

{

int direction = 1;

if(milli < 0)

{

direction = -1;

}

int voltage = percentage * 1200;

double goal = wholeBot.get_position() + (milli * MILLIMETER);

wholeBot.move_voltage(voltage * direction);

while (true)

{

int difference = (goal - wholeBot.get_position()) * direction;

if (difference < 10)

{

break;

}

delay (2);

}

wholeBot.brake();

}





void turn_degrees(int degrees, int percentage)

{

    int radius = 3.5 * MILLIMETER;

    int voltage = percentage * 1200;

    int direction = 1;

    if (degrees < 0)

    {

        direction = -1;

    }

    int leftGoal = left_motors.get_position() + (degrees * radius);

    int rightGoal = right_motors.get_position() - (degrees * radius);



    left_motors.move_velocity(voltage * direction);

    right_motors.move_velocity(-voltage * direction);



    bool leftComplete = false;

    bool rightComplete = false;

I know very little about programming, so if I’m wrong, someone please correct me, but it looks like you are defining some functions, but never actually calling anything. I don’t see an end bracket for turn_degrees, meaning all of your code at the end would be within the function turn_degrees. I think this should also throw an error, unless you didn’t copy all the code. I have no idea why it would even drive foward, as far as I can tell it shouldn’t do anything at all?

Thanks, Im not the main coder so I’ll show this to my guy who codes