while_Bertl Funktionen mit Task1,3

Dependencies:   mbed

Fork of while_Bertl123 by Julian Roll

NewClass.cpp

Committer:
Pouter123
Date:
2015-04-23
Revision:
0:1d90336fdde0
Child:
1:b6d7de0d8613

File content as of revision 0:1d90336fdde0:

#include "mbed.h"
#include "NewClass.h"
#include "ur_Bertl.h"
#include "config.h"
#include "const.h"



void NewClass :: ClearAllBeepersToTheWall()
{
    PickBeeper();
    while(FrontIsClear())
    {  
        Move();
        PickBeeper();
    }
    
}


void NewClass :: MoveUntilPickBeeper()
{
    while(!(NextToABeeper()))
{
    Move();
        
}
    PickBeeper();
    
}