summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2020-09-04 09:07:33 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2020-09-04 09:07:33 +0200
commit73e2f44f951f96ea644e2f28bf0e68475f87de13 (patch)
tree58d546da895234034c9de296c652f77cf16a8273 /src
parente5a258256fbfebabf068fbb2001eab0c71de1a0d (diff)
i2cdetect mpu9250: derp
Diffstat (limited to 'src')
-rw-r--r--src/app/i2cdetect/main.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/app/i2cdetect/main.cc b/src/app/i2cdetect/main.cc
index 4f82dc5..bb936cf 100644
--- a/src/app/i2cdetect/main.cc
+++ b/src/app/i2cdetect/main.cc
@@ -136,11 +136,11 @@ void loop(void)
int mx, my, mz;
kout << "Temperature: " << mpu9250.getTemperature() << endl;
kout << "Accel X " << mpu9250.getAccelX() << endl;
- kout << "Accel Y " << mpu9250.getAccelX() << endl;
- kout << "Accel Z " << mpu9250.getAccelX() << endl;
+ kout << "Accel Y " << mpu9250.getAccelY() << endl;
+ kout << "Accel Z " << mpu9250.getAccelZ() << endl;
kout << "Gyro X " << mpu9250.getGyroX() << endl;
- kout << "Gyro Y " << mpu9250.getGyroX() << endl;
- kout << "Gyro Z " << mpu9250.getGyroX() << endl;
+ kout << "Gyro Y " << mpu9250.getGyroY() << endl;
+ kout << "Gyro Z " << mpu9250.getGyroZ() << endl;
mpu9250.getRawMagnet(&mx, &my, &mz);
kout << "Magnet X " << mx << endl;
kout << "Magnet Y " << my << endl;