Help with Yaw Rate Gyroscope


#1

I have tried to use a Yaw Rate Gyroscope. First, I cleared the brain. Then, I used the lines while(Gyro1.isCalibrating) {
vex::task::sleep(3000);
}
to calibrate the gyro. Then, I used the line
Brain.Screen.printAt(1, 20, “rotation: %f degrees”, Gyro.value(roationUnits::deg));
to find the degree turned. However, during an experiment, the readings I got only consisted of 0. I am terrible at programming, so what am I doing wrong?


#2

Make sure the gryro is plugged in properly.


#3

20%20AM


#4

You are not updating the print statement after the wait, so the only reading you are getting after the wait is the initial reading or 0. Make sure to add a new print statement after the mtr1.stop()