Engine control program with 3 engines Needs to make a case for each simultaneous engine setting, because of the WAIT after each number of bits have been sent.

Dependencies:   mbed-rtos mbed PinDetect

Fork of FinalMotorControl by Robot Bachelor

Revision:
18:ef02a9014491
Parent:
17:ff0021c4dcdc
Child:
19:79600d3509d7
--- a/main.cpp	Tue Apr 26 14:25:29 2016 +0000
+++ b/main.cpp	Tue Apr 26 14:29:08 2016 +0000
@@ -261,6 +261,22 @@
     wait_us(fart);
 }
 
+void stopAll()
+{
+    IN1=0;
+    IN2=0;
+    IN3=0;
+    IN4=0;
+    IN5=0;
+    IN6=0;
+    IN7=0;
+    IN8=0;
+    IN9=0;
+    IN10=0;
+    IN11=0;
+    IN12=0;
+}
+
 
 
 void input(void const *args)
@@ -371,6 +387,10 @@
                 m_cmd = 'x';
                 
             }
+            if (m_cmd == 'z')
+            {
+                stopAll();
+            }