hihi
Dependencies: mbed
Diff: main.cpp
- Revision:
- 0:16ac2c69774e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Apr 16 13:13:38 2018 +0000 @@ -0,0 +1,14 @@ +#include "mbed.h" + + +case 180_GRAD_RECHTS + +buttonNow && !button.read(); +if (buttonNow && !buttonBefore { // detect button rising edge +state = LANGSAM_FAHREN; +} else if (( irSensorR.read() > DISTANCE_THRESHOLD) + && (irSensorF.read() > DISTANCE_THRESHOLD) + && (irSensorL.read() > DISTANCE_THRESHOLD)) { + controller.setTranslationalVelocity(TRANCLATIONAL_VELOCITY) { + state = VORWAERTSFAHREN; + \ No newline at end of file