Browse Source

Update EM7180_BMX055_MS5637_BasicAHRS_t3.ino

Fixed status polling
master
Kris Winer 9 years ago
parent
commit
3287f929a3
  1. 4
      EM7180_BMX055_MS5637_BasicAHRS_t3.ino

4
EM7180_BMX055_MS5637_BasicAHRS_t3.ino

@ -736,7 +736,7 @@ void loop()
az = (float)accelCount[2]*0.000488; az = (float)accelCount[2]*0.000488;
} }
if(readByte(EM7180_ADDRESS, EM7180_EventStatus) & 0x20) { // new gyro data available if(eventStatus & 0x20) { // new gyro data available
readSENtralGyroData(gyroCount); readSENtralGyroData(gyroCount);
// Now we'll calculate the gyro value into actual dps's // Now we'll calculate the gyro value into actual dps's
@ -745,7 +745,7 @@ void loop()
gz = (float)gyroCount[2]*0.153; gz = (float)gyroCount[2]*0.153;
} }
if(readByte(EM7180_ADDRESS, EM7180_EventStatus) & 0x08) { // new mag data available if(eventStatus & 0x08) { // new mag data available
readSENtralMagData(magCount); readSENtralMagData(magCount);
// Now we'll calculate the mag value into actual G's // Now we'll calculate the mag value into actual G's

Loading…
Cancel
Save