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:
9:1636083fce43
Parent:
8:5703dadaed07
Child:
10:17a16ceb376b
--- a/main.cpp	Tue Apr 26 11:03:23 2016 +0000
+++ b/main.cpp	Tue Apr 26 12:05:57 2016 +0000
@@ -10,6 +10,7 @@
 DigitalOut IN3(A2);
 DigitalOut IN4(A3);
 //Second engine 5-8
+/*
 DigitalOut IN5(D3);
 DigitalOut IN6(D4);
 DigitalOut IN7(D5);
@@ -18,12 +19,12 @@
 DigitalOut IN9(D8);
 DigitalOut IN10(D9);
 DigitalOut IN11(D10);
-DigitalOut IN12(D11);
+DigitalOut IN12(D11);  */
 
 
 static int fart = 1000;
 static char m_cmd = 'x';
-
+/*
 void step4Right3()
 {
 
@@ -81,6 +82,7 @@
     IN8=1;
     wait_us(fart);
 }
+*/
 void step4Right1()
 {
     //engine 1
@@ -109,6 +111,7 @@
     wait_us(fart);
 }
 
+/*
 void step4Left3()
 {
     //engine 2
@@ -175,7 +178,7 @@
     wait_us(fart);
     
 }
-
+*/
 void step4Left1()
 {
     //engine 1