Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shota3527 committed Oct 22, 2023
1 parent e17ae02 commit 69ac080
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/flight/imu.c
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,8 @@ static void imuMahonyAHRSupdate(float dt, const fpVector3_t * gyroBF, const fpVe
/* Step 1: Yaw correction */
// Use measured magnetic field vector
if (magBF || useCOG) {
float wMag;
float wCoG;
float wMag = 0.0f;
float wCoG = 0.0f;
fpVector3_t vMagErr = { .v = { 0.0f, 0.0f, 0.0f } };
fpVector3_t vCoGErr = { .v = { 0.0f, 0.0f, 0.0f } };

Expand Down

0 comments on commit 69ac080

Please sign in to comment.