Proyecto Nivel, Edgar Ochoa, Erik Garcia

Dependencies:   MMA8451Q mbed

Revision:
35:60b29a00cf12
Parent:
34:822eacf4e7cb
Child:
36:2bc74f4ce17b
Child:
37:7bc8819f91f4
diff -r 822eacf4e7cb -r 60b29a00cf12 versionerik.h
--- a/versionerik.h	Fri Feb 12 15:00:02 2016 +0000
+++ b/versionerik.h	Sun Feb 14 20:57:56 2016 +0000
@@ -16,7 +16,9 @@
         
         
     
-    if(data[2]>16020 && data[2]<16400 && data[0]>-150 && data[0]<2 && data[1]>150 && data[1]<350){
+    if(350<data[1] && data[1]>150 && data[0]<-200 && data[0]>-320 && data[2]>16100 && data[2]<=16300){
+        pc.printf("Nivel estable\n");
+        wait (0.4);
         b=0;
         g=1;
         r=1;