Library for Bosch Sensortec BMI160 IMU

Dependents:   Rocket MAX32630FTHR_JOYSTICK MAX32630FTHR_IMU_Hello_World Pike_the_Flipper_Main_Branch ... more

Fork of BMI160 by Justin Jordan

Revision:
19:8e66f58bef44
Parent:
16:12782f5d4aa4
--- 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;
     
 
 //*****************************************************************************