if front isn´t clear, turn around

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
vhaas
Date:
Thu Apr 23 12:14:10 2015 +0000
Commit message:
BERTL_If

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
ur_Bertl.lib Show annotated file Show diff for this revision Revisions of this file
--- /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