Functie van het slaan van de bal

Dependencies:   Encoder HIDScope mbed-dsp mbed MODSERIAL

Revision:
7:36a7a7136be3
Parent:
6:3c4a2afb11e5
Child:
8:eaa3e91dc534
--- a/main.cpp	Wed Oct 29 10:36:41 2014 +0000
+++ b/main.cpp	Wed Oct 29 10:38:25 2014 +0000
@@ -99,21 +99,21 @@
             m1_dir=1;
             max_speed=0.33;
             m1_speed.write(0.33);
-            return;
+            break;
         case 2:
             m1_dir=1;
             max_speed=0.66;
             m1_speed.write(0.66);
-            return;
+            break;
         case 3:
             m1_dir=1;
             max_speed=1;
             m1_speed.write(1);
-            return;
+            break;
         default:
             m1_dir=1;
             m1_speed=0;
-            return;
+            break;
     }
     enca=encoderA.getPosition();
     while(enca!=MAXENCO)