diff --git a/IMU.ino b/IMU.ino index 55c8455..853a911 100644 --- a/IMU.ino +++ b/IMU.ino @@ -26,7 +26,7 @@ void readIMU() { //Pitch rate from gyroscope - pitch_rate = -gx; + pitch_rate = -gy; //Complementary filter