Jannis Marinitsch
/
Test_Verbesserung_09_04_2015
Testverbesserung
Diff: main.cpp
- Revision:
- 0:7c1877ecf263
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Apr 16 11:52:37 2015 +0000 @@ -0,0 +1,35 @@ +#include "mbed.h" +#include "ur_Bertl.h" + +class Task_Bertl : public ur_Bertl +{public: + void Move2Boxes(); + void TurnRight(); +}; + +void Task_Bertl :: Move2Boxes() +{ + Move(); + Move(); +} + +void Task_Bertl :: TurnRight() +{ + TurnLeft(); + TurnLeft(); + TurnLeft(); +} + +int main() +{ Task_Bertl Bertl; + Bertl.Move2Boxes(); + Bertl.TurnLeft(); + Bertl.PickBeeper(); + Bertl.Move2Boxes(); + Bertl.TurnLeft(); + Bertl.PickBeeper(); + Bertl.Move(); + Bertl.TurnRight(); + Bertl.Move2Boxes(); + Bertl.ShutOff(); +} \ No newline at end of file