Control remoto universal con gestos
Dependencies: RemoteIR X_NUCLEO_IKS01A2 mbed
Fork of 6DOrientation_IKS01A2 by
Diff: main.cpp
- 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();