Skip to content

Commit

Permalink
Update gyro.c
Browse files Browse the repository at this point in the history
  • Loading branch information
Quick-Flash authored and nerdCopter committed Nov 22, 2022
1 parent d9bc0d4 commit 4cf2e5c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/sensors/gyro.c
Original file line number Diff line number Diff line change
Expand Up @@ -476,8 +476,7 @@ FAST_CODE void gyroUpdate(void)
gyro.gyroADC[X] = ((gyroScaled1 * varianceGyro2) + (gyroScaled2 * varianceGyro1)) / (varianceGyro1 + varianceGyro2);
DEBUG_SET(DEBUG_FUSION, 0, lrintf(gyroScaled1));
DEBUG_SET(DEBUG_FUSION, 1, lrintf(gyroScaled2));
DEBUG_SET(DEBUG_FUSION, 2, lrintf(varianceGyro1));
DEBUG_SET(DEBUG_FUSION, 3, lrintf(varianceGyro2));
DEBUG_SET(DEBUG_FUSION, 2, lrintf(gyro.gyroADC[X]));

gyroScaled1 = gyro.gyroSensor1.gyroDev.gyroADC[Y] * gyro.gyroSensor1.gyroDev.scale;
gyroScaled2 = gyro.gyroSensor2.gyroDev.gyroADC[Y] * gyro.gyroSensor2.gyroDev.scale;
Expand Down

0 comments on commit 4cf2e5c

Please sign in to comment.