Matthias Dorudi
/
IF_Task3
IF_Task3
Revision 0:4a495b04cc0f, committed 2015-04-17
- Comitter:
- matthiasdorudi
- Date:
- Fri Apr 17 08:40:59 2015 +0000
- Commit message:
- IF_Task3
Changed in this revision
diff -r 000000000000 -r 4a495b04cc0f Bertl_Task3.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Bertl_Task3.cpp Fri Apr 17 08:40:59 2015 +0000 @@ -0,0 +1,17 @@ +#include "mbed.h" +#include "const.h" +#include "ur_Bertl.h" +#include "Bertl_Task3.h" + +bool Bertl_Task3 :: RightIsClear(){ + bool clear; + TurnLeft(); + TurnLeft(); + TurnLeft(); + + clear = FrontIsClear(); + + TurnLeft(); + + return clear; +}
diff -r 000000000000 -r 4a495b04cc0f Bertl_Task3.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Bertl_Task3.h Fri Apr 17 08:40:59 2015 +0000 @@ -0,0 +1,12 @@ +#include "mbed.h" +#include "const.h" +#include "ur_Bertl.h" + +#ifndef BERTL_TASK3 +#define BERTL_TASK3 + +class Bertl_Task3 : public ur_Bertl{ + public: + bool RightIsClear(); +}; +#endif \ No newline at end of file
diff -r 000000000000 -r 4a495b04cc0f main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Apr 17 08:40:59 2015 +0000 @@ -0,0 +1,17 @@ +#include "ur_Bertl.h" +#include "const.h" +#include "mbed.h" +#include "Bertl_Task3.h" + +int main(){ + Bertl_Task3 Tom; //Benennen + + Tom.Move(); + + if (Tom.RightIsClear()){ + Tom.Move(); + } + else + Tom.ShutOff(); + +} \ No newline at end of file
diff -r 000000000000 -r 4a495b04cc0f mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Apr 17 08:40:59 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/487b796308b0 \ No newline at end of file
diff -r 000000000000 -r 4a495b04cc0f ur_Bertl.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ur_Bertl.lib Fri Apr 17 08:40:59 2015 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/teams/BERTL_CHEL_18/code/ur_Bertl/#e7f74f072564