Matthias Dorudi
/
IF_Task1
Task1 if
Bertl_Predikatbefehl_LIB.cpp
- Committer:
- matthiasdorudi
- Date:
- 2015-04-16
- Revision:
- 1:a64f244ecf78
- Parent:
- 0:42f81496681a
File content as of revision 1:a64f244ecf78:
#include "mbed.h" #include "const.h" #include "ur_Bertl.h" #include "Bertl_Predikatbefehl_LIB.h" bool Bertl_Predikatbefehl_LIB :: LeftIsBlocked(){ bool blocked; TurnLeft(); blocked = !FrontIsClear(); TurnLeft(); TurnLeft(); TurnLeft(); return blocked; } bool Bertl_Predikatbefehl_LIB :: FrontIsClear_AND_BTN_FLL_NotPressed(){ if(FrontIsClear() && !IsButtonPressed(BTN_FLL)) return true; else return false; }