verslag

Dependencies:   Encoder HIDScope MODSERIAL- mbed-dsp mbed

Fork of PROJECT_FINAL by Aukie Hooglugt

Revision:
28:1e3fe7204529
Parent:
27:e33c352d6bb2
--- a/PROJECT_main.cpp	Tue Nov 04 11:33:58 2014 +0000
+++ b/PROJECT_main.cpp	Tue Nov 04 11:36:05 2014 +0000
@@ -317,7 +317,6 @@
     blink2.detach();
     dir1 = dir2 = dir3 = 1;
     for1 = for2 = for3 = 1;
-    pc.printf("kalmoarm ");
     wait (1);
     for1 = for2 = for3 = 0;
 
@@ -332,7 +331,6 @@
         }
         blink.detach();
         dir1 = dir2 = dir3 = 1;
-        pc.printf("kalbi ");
         wait (1);
 
         //triceps kalibratie
@@ -345,7 +343,6 @@
         }
         blink.detach();
         for1 = for2 = for3 = 1;
-        pc.printf("kaltri ");
         wait (1);
         for1 = for2 = for3 = 0;
         kalibratie = 1;
@@ -363,7 +360,6 @@
                 for (int lag=0; lag<TIMEBETWEENBLINK; lag++) {
                     if(bi_result>FACTOR*bi_max) {
                         direction = 1;
-                        pc.printf("links ");
                         wait(TIMEB4NEXTCHOICE);                 // Tijdelijke wait om cyaan lampje aan te zetten ter controle selectie
                         goto forcechoice;                       // goes to second while(1) for the deciding the force
                     } else {
@@ -378,7 +374,6 @@
                 for (int lag=0; lag<TIMEBETWEENBLINK; lag++) {
                     if(bi_result>FACTOR*bi_max) {
                         direction = 2;
-                        pc.printf("mid ");
                         wait(TIMEB4NEXTCHOICE);                            // Tijdelijke wait om paars lampje aan te zetten ter controle selectie
                         goto forcechoice;
                     } else {
@@ -393,7 +388,6 @@
                 for (int lag=0; lag<TIMEBETWEENBLINK; lag++) {
                     if(bi_result>FACTOR*bi_max) {
                         direction = 3;
-                        pc.printf("rechts ");
                         wait(TIMEB4NEXTCHOICE);                            // Tijdelijke wait om oranje lampje aan te zetten ter controle selectie
                         goto forcechoice;
                     } else {
@@ -413,12 +407,10 @@
                 for (int lag=0; lag<TIMEBETWEENBLINK; lag++) {
                     if(tri_result>FACTOR*tri_max) {
                         for1 = for2 = for3 = 0;
-                        pc.printf("reset ");
                         goto directionchoice;
                     } else {
                         if(bi_result>FACTOR*bi_max) {
                             force = 1;
-                            pc.printf("zwak ");
                             wait(TIMEB4NEXTCHOICE);                            // Tijdelijke wait om cyaan lampje aan te zetten ter controle selectie
                             goto choicesmade;
                         } else {
@@ -434,12 +426,10 @@
                 for (int lag=0; lag<TIMEBETWEENBLINK; lag++) {
                     if(tri_result>FACTOR*tri_max) {
                         for1 = for2 = for3 = 0;
-                        pc.printf("reset ");
                         goto directionchoice;
                     } else {
                         if(bi_result>FACTOR*bi_max) {
                             force = 2;
-                            pc.printf("normaal ");
                             wait(TIMEB4NEXTCHOICE);                            // Tijdelijke wait om paars lampje aan te zetten ter controle selectie
                             goto choicesmade;
                         } else {
@@ -455,12 +445,10 @@
                 for (int lag=0; lag<TIMEBETWEENBLINK; lag++) {
                     if(tri_result>FACTOR*tri_max) {
                         for1 = for2 = for3 = 0;
-                        pc.printf("reset ");
                         goto directionchoice;
                     } else {
                         if(bi_result>FACTOR*bi_max) {
                             force = 3;
-                            pc.printf("sterk ");
                             wait(TIMEB4NEXTCHOICE);                            // Tijdelijke wait om oranje lampje aan te zetten ter controle selectie
                             goto choicesmade;
                         } else {
@@ -477,7 +465,6 @@
     while(1) {
         if(tri_result>FACTOR*tri_max) {
             blink.detach();
-            pc.printf("reset ");
             switch (direction) {
                 case 1:
                     dir1 = 1;