hoho
Dependencies: mbed
Fork of 90GRAD_RECHTS by
Revision 0:a09c9455aab0, committed 2018-04-16
- Comitter:
- charageo
- Date:
- Mon Apr 16 13:14:51 2018 +0000
- Commit message:
- joo
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
diff -r 000000000000 -r a09c9455aab0 main.cpp --- /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
diff -r 000000000000 -r a09c9455aab0 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Apr 16 13:14:51 2018 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/994bdf8177cb \ No newline at end of file