Help with Yaw Rate Gyroscope


I have tried to use a Yaw Rate Gyroscope. First, I cleared the brain. Then, I used the lines while(Gyro1.isCalibrating) {
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?


Make sure the gryro is plugged in properly.




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()