Example of 6D orientation recognition for LSM6DSL in X-NUCLEO-IKS01A2

Dependencies:   X_NUCLEO_IKS01A2 mbed

Fork of 6DOrientation_IKS01A2 by ST Expansion SW Team

6D Orientation Demo Application based on sensor expansion board X-NUCLEO-IKS01A2

Main function is to show how to use sensor expansion board to find out the 6D orientation and send data using UART to a connected PC or Desktop and display it on terminal applications like TeraTerm.
After connection has been established:
- the user can rotate the board to change the 6D orientation and then view the data using an hyper terminal.
- the user button can be used to display the current 6D orientation.

Revision:
8:459b84a5287b
Parent:
7:d598eeaedcbd
Child:
13:446c314ac03f
diff -r d598eeaedcbd -r 459b84a5287b main.cpp
--- a/main.cpp	Thu Nov 24 16:44:18 2016 +0000
+++ b/main.cpp	Fri Dec 02 16:01:58 2016 +0000
@@ -1,9 +1,9 @@
 /**
  ******************************************************************************
  * @file    main.cpp
- * @author  AST / EST
- * @version V0.0.1
- * @date    9-August-2016
+ * @author  CLab
+ * @version V1.0.0
+ * @date    2-December-2016
  * @brief   Simple Example application for using the X_NUCLEO_IKS01A2 
  *          MEMS Inertial & Environmental Sensor Nucleo expansion board.
  ******************************************************************************
@@ -41,7 +41,7 @@
 #include "x_nucleo_iks01a2.h"
 
 /* Instantiate the expansion board */
-static X_NUCLEO_IKS01A2 *mems_expansion_board = X_NUCLEO_IKS01A2::Instance(D14, D15);
+static X_NUCLEO_IKS01A2 *mems_expansion_board = X_NUCLEO_IKS01A2::Instance(D14, D15, D4, D5);
 
 /* Retrieve the composing elements of the expansion board */
 static LSM6DSLSensor *acc_gyro = mems_expansion_board->acc_gyro;