.

Dependencies:   BNO055 SDFileSystem mbed

Files at this revision

API Documentation at this revision

Comitter:
alejo5214416
Date:
Thu Nov 15 22:26:20 2018 +0000
Parent:
10:38a121c217df
Commit message:
.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue Nov 13 02:43:39 2018 +0000
+++ b/main.cpp	Thu Nov 15 22:26:20 2018 +0000
@@ -239,7 +239,8 @@
         flagi = false;
     } else {
         flagi = true;
-        if ( fabs(vel_x_act) < 1 && fabs(vel_y_act) < 1 && fabs(vel_z_act) < 1 && fabs(acel_x) < 0.03 && fabs(acel_y)<0.03 && fabs(acel_z)<0.03 ) {
+         // < 0.03 && fabs(acel_y)<0.03 && fabs(acel_z)<0.03
+        if ( fabs(vel_x_act) < 1 && fabs(vel_y_act) < 1 && fabs(vel_z_act) < 1 && fabs(acel_x) ) {
             count++;
             if ( count >= 2) {
                 led1 = 0;