Task1 if

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
matthiasdorudi
Date:
Thu Apr 16 12:51:01 2015 +0000
Parent:
0:42f81496681a
Commit message:
if task

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 42f81496681a -r a64f244ecf78 main.cpp
--- a/main.cpp	Thu Apr 16 12:29:43 2015 +0000
+++ b/main.cpp	Thu Apr 16 12:51:01 2015 +0000
@@ -6,5 +6,12 @@
 int main(){
     Bertl_Predikatbefehl_LIB Tom;       //Benennen
     
-        
+    Tom.Move();
+
+    if (Tom.LeftIsBlocked()){
+        Tom.Move();
+    }
+    else
+        Tom.ShutOff();
+          
 }
\ No newline at end of file