M Seiser
/
BERTL_Test_FSST
Bertl moves picks the beepers in the corners and gets out of the room.
Revision 0:339f000abe3a, committed 2015-04-23
- Comitter:
- mSeiser
- Date:
- Thu Apr 23 12:06:05 2015 +0000
- Commit message:
- Move , PickBeeper and Turn;
Changed in this revision
diff -r 000000000000 -r 339f000abe3a main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Apr 23 12:06:05 2015 +0000 @@ -0,0 +1,18 @@ +#include "mbed.h" +#include "ur_Bertl.h" +#include "task_Bertl.h" + +int main() +{ + Task_Bertl robot; + + robot.MovePickTurn(); + robot.MovePickTurn(); + robot.Move(); + robot.TurnRight(); + robot.Move2Boxes(); + robot.ShutOff(); + + + +} \ No newline at end of file
diff -r 000000000000 -r 339f000abe3a mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Apr 23 12:06:05 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 339f000abe3a task_Bertl.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/task_Bertl.cpp Thu Apr 23 12:06:05 2015 +0000 @@ -0,0 +1,23 @@ +#include "mbed.h" +#include "ur_Bertl.h" +#include "task_Bertl.h" + +void Task_Bertl :: MovePickTurn() +{ + Move2Boxes(); + PickBeeper(); + TurnLeft(); + +} +void Task_Bertl :: Move2Boxes() +{ + Move(); + Move(); + +} +void Task_Bertl :: TurnRight() +{ + TurnLeft(); + TurnLeft(); + TurnLeft(); +} \ No newline at end of file
diff -r 000000000000 -r 339f000abe3a task_Bertl.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/task_Bertl.h Thu Apr 23 12:06:05 2015 +0000 @@ -0,0 +1,15 @@ +#include "mbed.h" +#include "ur_Bertl.h" + +#ifndef TASK_BERTL_H +#define TASK_BERTL_H + +class Task_Bertl : public ur_Bertl +{ + public: + void MovePickTurn(); + void Move2Boxes(); + void TurnRight(); + +}; +#endif \ No newline at end of file
diff -r 000000000000 -r 339f000abe3a ur_Bertl.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ur_Bertl.lib Thu Apr 23 12:06:05 2015 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/teams/BERTL_CHEL_18/code/ur_Bertl/#76acfddc26fb