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:
4:1adb1ce17b05
Parent:
0:485458fca2bd
Child:
6:f215defe10e4
--- a/main.cpp	Fri Aug 19 15:09:06 2016 +0000
+++ b/main.cpp	Mon Nov 21 14:57:06 2016 +0000
@@ -74,9 +74,9 @@
   while(1) {
     if (orientation) {
       orientation = 0;
-      uint8_t status = 0;
-      acc_gyro->Get_Status_6D_Orientation(&status);
-      if (status) {
+      LSM6DSL_Event_Status_t status;
+      acc_gyro->Get_Event_Status(&status);
+      if (status.D6DOrientationStatus) {
         /* Send 6D Orientation */
         sendOrientation();