Hi I am try to make a function for the gyro turn program, but when the program runs the bot just goes in circles not a 90 degree turn.
Here is the original program
That works fine when I run it
Here is it made into a function
And here is program I am calling it from
can anyone help me?