Verena Haas
/
BERTL_IF
if front isn´t clear, turn around
Revision 0:52952a8c6fb5, committed 2015-04-23
- Comitter:
- vhaas
- Date:
- Thu Apr 23 12:14:10 2015 +0000
- Commit message:
- BERTL_If
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Apr 23 12:14:10 2015 +0000 @@ -0,0 +1,25 @@ +#include "mbed.h" +#include "ur_Bertl.h" +#include "const.h" + +class IfBertl : public ur_Bertl +{ + public: + bool FrontIsClear_AND_BTN_FLL_NotPressed(); +}; + +bool IfBertl :: FrontIsClear_AND_BTN_FLL_NotPressed() +{ + if( FrontIsClear() ) + { + return !IsButtonPressed(BTN_FLL); + } + return false; +} + +int main() +{ + IfBertl karel; + + karel.FrontIsClear_AND_BTN_FLL_NotPressed(); +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Apr 23 12:14:10 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/433970e64889 \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ur_Bertl.lib Thu Apr 23 12:14:10 2015 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/teams/BERTL_CHEL_18/code/ur_Bertl/#e7f74f072564