hoho

Dependencies:   mbed

main.cpp

Committer:
charageo
Date:
2018-04-16
Revision:
0:a09c9455aab0

File content as of revision 0:a09c9455aab0:

#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;
    }