Demo mode

Dependencies:   BioroboticsMotorControl mbed

Files at this revision

API Documentation at this revision

Comitter:
MAHCSnijders
Date:
Thu Nov 01 11:25:58 2018 +0000
Parent:
0:91a5bdab07d3
Commit message:
Demo mode

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 91a5bdab07d3 -r 1e67c5a527cc main.cpp
--- a/main.cpp	Thu Nov 01 11:16:51 2018 +0000
+++ b/main.cpp	Thu Nov 01 11:25:58 2018 +0000
@@ -9,6 +9,10 @@
 Motor main_motor(D6, D7, D13, D12);
 Motor sec_motor(D5, D4, D10, D11);
 
+void ()
+
+
+
 int main()
 {
     while (true) 
@@ -22,5 +26,13 @@
         screen.display_up_down_arrow(control_goes_up);
         screen.display_left_right_arrow(control_goes_right);
         screen.display();
+        
+        Button1.fall();
+        Button2.fall();
+
+        if (p_button.is_pressed()) {                            // For panic state
+        current_state = failure;}
+
+
     }
 }
\ No newline at end of file