Part 2

Dependencies:   MMA8451Q

Revision:
6:b4a7a3e46018
Parent:
5:75cd0f7649ca
--- a/main.cpp	Wed Feb 20 18:28:12 2019 +0000
+++ b/main.cpp	Sun Feb 24 14:32:12 2019 +0000
@@ -84,7 +84,6 @@
     gled = 1;
     bled = 1;
 
-
     while (true) {
         float x, y, z;
         x = acc.getAccX();
@@ -96,7 +95,7 @@
         switch(system){
             case 1: //initial flat state
                 if(tick > 100 && state == Yn){
-                    pc.printf("passed first stage \n\r"); 
+                    //pc.printf("passed first stage \n\r"); 
                     system = 2;
                     tick = 0;
                 }
@@ -110,7 +109,7 @@
             
             case 2: //right orientation state
                 if(tick > 20 && tick < 60 && state == Xn){
-                    pc.printf("passed second stage \n\r");
+                    //pc.printf("passed second stage \n\r");
                     system = 3;
                     tick = 0;
                 }
@@ -124,7 +123,7 @@
 
             case 3: //upwards orientation
                 if(tick > 40 && tick < 80 && state == Zp){
-                    pc.printf("passed third stage \n\r");
+                    //pc.printf("passed third stage \n\r");
                     system = 4;
                     tick = 0;
                 }