Roboshark / Mbed 2 deprecated 180_GRAD_RECHTS

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002  
00003 
00004 case 180_GRAD_RECHTS
00005 
00006 buttonNow && !button.read();
00007 if (buttonNow && !buttonBefore {  // detect button rising edge
00008 state = LANGSAM_FAHREN;
00009 } else if (( irSensorR.read() > DISTANCE_THRESHOLD)
00010             && (irSensorF.read() > DISTANCE_THRESHOLD)
00011             && (irSensorL.read() > DISTANCE_THRESHOLD)) {
00012     controller.setTranslationalVelocity(TRANCLATIONAL_VELOCITY) {
00013     state = VORWAERTSFAHREN;
00014