hehe

Dependencies:   mbed

Revision:
0:6ce3d073a033
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Apr 16 13:12:26 2018 +0000
@@ -0,0 +1,14 @@
+#include "mbed.h"
+ 
+case 270_GRAD_RECHTS
+
+buttonNow = button.read();
+if (buttonNow && !buttonBefore {  //detect button rising edge
+    controller.set RotationalVelociy(0.0f);
+    state = LANGSAM_FAHREN;
+    } else if ((irSensorF.read() > DISTANCE_THRESHOLD)
+                && (irSensorR.read() > DISTANCE_THRESHOLD)
+                && (irSensorL.read() < DISTANCE_THRESHOLD) {
+    controller.setTranslationalVelocity(TRANSLATIONAL_VELOCITY);
+    state= VORWAERTSFAHREN;
+}
\ No newline at end of file