Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
LiquidCGS committed Mar 30, 2023
2 parents 299fd96 + 5914a2d commit 7dbf9d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/F_MPU9250.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ int MPU9250::initMagnetometer()
// and enable continuous mode data acquisition Mmode (bits [3:0]), 0010 for 8 Hz and 0110 for 100 Hz sample rates
writeByte(AK8963_ADDRESS, AK8963_CNTL, (uint8_t)1 << 4 | 0x06); // Set magnetometer data resolution and sample ODR
delay(10);
return 0;
}

void MPU9250::update() {
Expand Down
1 change: 1 addition & 0 deletions src/F_MPU9255.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ int MPU9255::initMagnetometer()
// and enable continuous mode data acquisition Mmode (bits [3:0]), 0010 for 8 Hz and 0110 for 100 Hz sample rates
writeByte(AK8963_ADDRESS, AK8963_CNTL, (uint8_t)1 << 4 | 0x06); // Set magnetometer data resolution and sample ODR
delay(10);
return 0;
}

void MPU9255::update() {
Expand Down

0 comments on commit 7dbf9d2

Please sign in to comment.