From 1452c93161cfa98398e7678aad7b6de8febd7ea2 Mon Sep 17 00:00:00 2001 From: dario Date: Mon, 15 Jul 2024 15:51:23 +0200 Subject: [PATCH] Fixed a bug in data collection --- src/bmi088.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bmi088.cpp b/src/bmi088.cpp index 0a0dd03..7ee93aa 100644 --- a/src/bmi088.cpp +++ b/src/bmi088.cpp @@ -143,7 +143,7 @@ namespace sta void BMI088::getAcceleration(float* x, float* y, float* z) { uint16_t i_x,i_y,i_z; - getRawRotation(&i_x, &i_y, &i_z); + getRawAcceleration(&i_x, &i_y, &i_z); convertRawToActual(&i_x, x, f_accel_range); convertRawToActual(&i_y, y, f_accel_range); convertRawToActual(&i_z, z, f_accel_range);