Program Being Weird

My program is spinning in endless circles instead of driving in an arc. It has always worked until now. I have a tournament very soon.

1 Like

Please post your code?

2 Likes

And format it please. We can help you if we can better understand your problem. Thanks!

1 Like

It is in Vexcode Blocks.

1 Like

Here’s a screenshot:image
It’s the top third pink block under the “when started” block.

Never mind, someone (@Noah10851B) figured it out. It’s the while loop in the function. I did not realize that it was out of place for some reason.

3 Likes

Never put urgent in a title. Everyone’s code help is urgent.

6 Likes

Okay, now I have another problem…
Instead of turning right and going forwards in one block, the robot is trying to go forwards with oscillations.

Edit: I changed the gyro sensor, and it works now. The moments of realization are so exciting.

1 Like

This may be because your p value is too large. High P values should cause ocsilliations.

2 Likes