hoho

Dependencies:   mbed

Revision:
0:a09c9455aab0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Apr 16 13:14:51 2018 +0000
@@ -0,0 +1,12 @@
+#include "mbed.h"
+ 
+case 90_GRAD_RECHTS
+
+buttonNOW = button.read();
+if (buttonNow && !buttonBefore {  // deect button rising edge
+    controller.setRotationalVelocity(0.0f);
+    state = LANGSAM_FAHREN;
+    } else if ((irSensorR < DISTANCE_THRESHOLD) {
+        controller.setTranslationalvelocity(TRANSLATIONAL_VELOCITY);
+        state = VORWAERTSFAHREN;
+    }
\ No newline at end of file