From 2baa0a1d8584b4fff1df548437882fa6c908350e Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 13 Dec 2021 21:54:01 +0100 Subject: mpu9250: Implement getMagnet function TODO: Use ASA[XYZ] for sensitivity adjustment --- include/driver/mpu9250.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/driver') diff --git a/include/driver/mpu9250.h b/include/driver/mpu9250.h index bc0a11f..5a12150 100644 --- a/include/driver/mpu9250.h +++ b/include/driver/mpu9250.h @@ -274,7 +274,7 @@ class MPU9250 { bool getRawMagnet(int *x, int *y, int *z); void getAccel(float *g_x, float *g_y, float *g_z); void getGyro(float *dps_x, float *dps_y, float *dps_z); - void getMagnet(int *x, int *y, int *z); + bool getMagnet(float *ut_x, float *ut_y, float *ut_z); float getTemperature(); void setAccelEnable(bool x, bool y, bool z); void setGyroEnable(bool x, bool y, bool z); -- cgit v1.2.3