hihi

Dependencies:   mbed

Committer:
charageo
Date:
Mon Apr 16 13:13:38 2018 +0000
Revision:
0:16ac2c69774e
ok

Who changed what in which revision?

UserRevisionLine numberNew contents of line
charageo 0:16ac2c69774e 1 #include "mbed.h"
charageo 0:16ac2c69774e 2
charageo 0:16ac2c69774e 3
charageo 0:16ac2c69774e 4 case 180_GRAD_RECHTS
charageo 0:16ac2c69774e 5
charageo 0:16ac2c69774e 6 buttonNow && !button.read();
charageo 0:16ac2c69774e 7 if (buttonNow && !buttonBefore { // detect button rising edge
charageo 0:16ac2c69774e 8 state = LANGSAM_FAHREN;
charageo 0:16ac2c69774e 9 } else if (( irSensorR.read() > DISTANCE_THRESHOLD)
charageo 0:16ac2c69774e 10 && (irSensorF.read() > DISTANCE_THRESHOLD)
charageo 0:16ac2c69774e 11 && (irSensorL.read() > DISTANCE_THRESHOLD)) {
charageo 0:16ac2c69774e 12 controller.setTranslationalVelocity(TRANCLATIONAL_VELOCITY) {
charageo 0:16ac2c69774e 13 state = VORWAERTSFAHREN;
charageo 0:16ac2c69774e 14