diff options
author | Stanley Huang <stanleyhuangyc@gmail.com> | 2015-03-23 17:23:17 +1100 |
---|---|---|
committer | Stanley Huang <stanleyhuangyc@gmail.com> | 2015-03-23 17:23:17 +1100 |
commit | 9b19acc4b759b5c16d65c16c1b6e15d781f8116d (patch) | |
tree | 6d445fd590624147657f5ad16249a0a3ca34e215 /megalogger/megalogger.ino | |
parent | 06a579e730bb356cb3e14ef4a166cbfc6bc8affc (diff) | |
download | 2021-arduino-obd-9b19acc4b759b5c16d65c16c1b6e15d781f8116d.tar.gz 2021-arduino-obd-9b19acc4b759b5c16d65c16c1b6e15d781f8116d.tar.bz2 2021-arduino-obd-9b19acc4b759b5c16d65c16c1b6e15d781f8116d.zip |
Add support for MPU-9150
Diffstat (limited to 'megalogger/megalogger.ino')
-rw-r--r-- | megalogger/megalogger.ino | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/megalogger/megalogger.ino b/megalogger/megalogger.ino index 22ba948..6def771 100644 --- a/megalogger/megalogger.ino +++ b/megalogger/megalogger.ino @@ -475,7 +475,11 @@ void processAccelerometer() gx /= GYRO_DATA_RATIO; gy /= GYRO_DATA_RATIO; gz /= GYRO_DATA_RATIO; - +#if USE_MPU9150 + mx /= COMPASS_DATA_RATIO; + my /= COMPASS_DATA_RATIO; + mz /= COMPASS_DATA_RATIO; +#endif // display MEMS data lcd.setFontSize(FONT_SIZE_SMALL); lcd.setCursor(214, 22); |