Testverbesserung

Dependencies:   mbed

main.cpp

Committer:
Jannis
Date:
2015-04-16
Revision:
0:7c1877ecf263

File content as of revision 0:7c1877ecf263:

#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();
}