Alle Beeper werden zur Wand gebracht

Dependencies:   mbed

main.cpp

Committer:
feldgrill1
Date:
2015-04-24
Revision:
0:78cdcb8ca467

File content as of revision 0:78cdcb8ca467:

#include "mbed.h"
#include "ur_Bertl.h"
#include "const.h"
#include "Bertl_Bewegungen.h"

class task_Bertl : public ur_Bertl
{
 public:
 void TurnRight(){
     TurnLeft(); TurnLeft(); TurnLeft();}
 void Move2Boxes(){
     Move();Move();}
 };
 
int main()
{
  //ur_Bertl karel;
  // Bertl_Bewegungen karel;            // Objekt erzeugen (instatiieren)
  
  // while(karel.WaitUntilButtonPressed()){}

   // karel.Move4Boxes();
   // karel.TurnLeft();
   // karel.Move2Boxes();
   // karel.TurnLeft();
   // karel.Move4Boxes();
   // karel.ShutOff();
   
   task_Bertl karel;
   
   karel.Move2Boxes();
   karel.PickBeeper();
   karel.TurnRight();
   karel.Move2Boxes();
   karel.PickBeeper();
   karel.TurnRight();
   karel.Move();
   karel.TurnLeft();
   karel.Move2Boxes();
   karel.ShutOff();
 
}