First Commit as a new library
Dependents: Host_Software_MAX32664GWEB_HR_wrist Host_Software_MAX32664GWEC_SpO2_HR Host_Software_MAX32664GWEB_HR_EXTENDED Host_Software_MAX32664GWEC_SpO2_HR-_EXTE ... more
Diff: bmi160.cpp
- Revision:
- 19:8e66f58bef44
- Parent:
- 16:12782f5d4aa4
- Child:
- 21:f7216b5dc6c0
diff -r 4949e9b15b6e -r 8e66f58bef44 bmi160.cpp
--- a/bmi160.cpp Tue Jul 11 19:38:42 2017 +0000
+++ b/bmi160.cpp Fri May 04 13:32:36 2018 +0300
@@ -42,6 +42,20 @@
const struct BMI160::GyroConfig BMI160::DEFAULT_GYRO_CONFIG = {DPS_2000,
GYRO_BWP_2,
GYRO_ODR_8};
+
+///Period of internal counter
+static const float SENSOR_TIME_LSB = 39e-6;
+
+static const float SENS_2G_LSB_PER_G = 16384.0F;
+static const float SENS_4G_LSB_PER_G = 8192.0F;
+static const float SENS_8G_LSB_PER_G = 4096.0F;
+static const float SENS_16G_LSB_PER_G = 2048.0F;
+
+static const float SENS_2000_DPS_LSB_PER_DPS = 16.4F;
+static const float SENS_1000_DPS_LSB_PER_DPS = 32.8F;
+static const float SENS_500_DPS_LSB_PER_DPS = 65.6F;
+static const float SENS_250_DPS_LSB_PER_DPS = 131.2F;
+static const float SENS_125_DPS_LSB_PER_DPS = 262.4F;
//*****************************************************************************