Matthias Dorudi
/
FollowLine
FollowLine
Meine Projekte
Dieses Projekt habe ich im Sommersemester 2015 in FSST programmiert.
Projekte
Revision 0:14e92501b8ad, committed 2015-05-07
- Comitter:
- matthiasdorudi
- Date:
- Thu May 07 11:44:19 2015 +0000
- Commit message:
- FOLLOW LINE
Changed in this revision
diff -r 000000000000 -r 14e92501b8ad FollowLine.cpp
diff -r 000000000000 -r 14e92501b8ad FollowLine.h
diff -r 000000000000 -r 14e92501b8ad main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu May 07 11:44:19 2015 +0000 @@ -0,0 +1,31 @@ +#include "mbed.h" +#include "ur_Bertl.h" +#include "const.h" + +Serial bt(p9,vp10); + +int main(){ + + Bertl tom; + + while(true){ + int a = 5; + bt.printf("Hello World %d \n",a); + wait(1); + } + + while(1){ + + uint8_t val = tom.GetLineValues(); // Definition und Zuweisung des Wertes an val + + tom.NibbleLeds(val); // Anzeigen des Werts der Variable val an den 4 gelben Leds + + if (val == 6 || val == 3 || val == 2 || val == 1 || val == 4 || val == 12 || val == 8){ + tom.Move(20); + } + + if (val == 0){ + tom.TurnLeftStep(5); + } + } +} \ No newline at end of file
diff -r 000000000000 -r 14e92501b8ad mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu May 07 11:44:19 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/8ab26030e058 \ No newline at end of file
diff -r 000000000000 -r 14e92501b8ad ur_Bertl.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ur_Bertl.lib Thu May 07 11:44:19 2015 +0000 @@ -0,0 +1,1 @@ +https://developer.mbed.org/teams/BERTL_CHEL_18/code/ur_Bertl/#3ce84646fd74