Michael Benedikt
/
Bertl2_0
TurnBackMoveFrontIsNotClear
Revision 0:60330fba6e8d, committed 2015-05-08
- Comitter:
- zwiebelturm100
- Date:
- Fri May 08 08:15:19 2015 +0000
- Commit message:
- Bertl2_0
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Bertl2_0.cpp Fri May 08 08:15:19 2015 +0000 @@ -0,0 +1,17 @@ +#include "mbed.h" +#include "ur_Bertl.h" +#include "Bertl2_0.h" + +void Bertl2_0 :: TurnBackMoveFrontNotClear() +{ + if( FrontIsClear() ) + { + Move(); + } + else + { + TurnLeft(); + TurnLeft(); + Move(); + } +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Bertl2_0.h Fri May 08 08:15:19 2015 +0000 @@ -0,0 +1,12 @@ +#include "mbed.h" +#include "ur_Bertl.h" + +//#ifndef BERTL2_0_H +//#define BERTL2_0_H + +class Bertl2_0 : public ur_Bertl +{ + public: + void TurnBackMoveFrontNotClear(); +}; +//#endif \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri May 08 08:15:19 2015 +0000 @@ -0,0 +1,17 @@ +#include "mbed.h" +#include "ur_Bertl.h" +#include "Bertl2_0.h" + + + +int main() +{ + Bertl2_0 Michael; + + while(1) + { + Michael.TurnBackMoveFrontNotClear(); + //waitms(2) + } + +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri May 08 08:15:19 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/487b796308b0 \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ur_Bertl.lib Fri May 08 08:15:19 2015 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/teams/BERTL_CHEL_18/code/ur_Bertl/#6b667e2cb800