local changes to increase sample rate

Dependencies:   ST_INTERFACES X_NUCLEO_COMMON_Local

Fork of X_NUCLEO_IKS01A1 by ST

Revision:
93:57ce1f81cd52
Parent:
92:d1c67d482bad
--- a/x_nucleo_iks01a1.cpp	Fri Mar 24 10:57:29 2017 +0100
+++ b/x_nucleo_iks01a1.cpp	Sun May 21 12:53:41 2017 +0000
@@ -248,19 +248,33 @@
 			return true;
 		}
             
+//	/* Configure sensor */
+//	InitStructure.G_FullScale       = 2000.0f; /* 2000DPS */
+//	InitStructure.G_OutputDataRate  = 119.0f;  /* 119HZ */
+//	InitStructure.G_X_Axis          = 1;       /* Enable */
+//	InitStructure.G_Y_Axis          = 1;       /* Enable */
+//	InitStructure.G_Z_Axis          = 1;       /* Enable */
+//
+//	InitStructure.X_FullScale       = 2.0f;    /* 2G */
+//	InitStructure.X_OutputDataRate  = 119.0f;  /* 119HZ */
+//	InitStructure.X_X_Axis          = 1;       /* Enable */
+//	InitStructure.X_Y_Axis          = 1;       /* Enable */
+//	InitStructure.X_Z_Axis          = 1;       /* Enable */
+
+
 	/* Configure sensor */
 	InitStructure.G_FullScale       = 2000.0f; /* 2000DPS */
-	InitStructure.G_OutputDataRate  = 119.0f;  /* 119HZ */
+	InitStructure.G_OutputDataRate  = 476.0f;  /* 119HZ */  //LSM6DS0_G_ODR_238HZ LSM6DS0_G_ODR_476HZ
 	InitStructure.G_X_Axis          = 1;       /* Enable */
 	InitStructure.G_Y_Axis          = 1;       /* Enable */
 	InitStructure.G_Z_Axis          = 1;       /* Enable */
 
-	InitStructure.X_FullScale       = 2.0f;    /* 2G */
-	InitStructure.X_OutputDataRate  = 119.0f;  /* 119HZ */
+	InitStructure.X_FullScale       = 8.0f;    /* 2G */ // LSM6DS0_XL_FS_8G
+	InitStructure.X_OutputDataRate  = 476.0f;  /* 119HZ */   // LSM6DS0_XL_ODR_238HZ LSM6DS0_XL_ODR_476HZ
 	InitStructure.X_X_Axis          = 1;       /* Enable */
 	InitStructure.X_Y_Axis          = 1;       /* Enable */
 	InitStructure.X_Z_Axis          = 1;       /* Enable */
-              
+ 
 	if(gyro_lsm6ds0->init(&InitStructure) != IMU_6AXES_OK)
 		{
 			return false;