ELCT 302 / Mbed 2 deprecated Top_Fuel_Dragster

Dependencies:   mbed

Revision:
7:0b883a7a2754
Parent:
6:1b4a677c468c
Child:
8:5bfd4ca9ce17
--- a/main.cpp	Sat Apr 21 22:43:32 2018 +0000
+++ b/main.cpp	Sun Apr 22 13:38:13 2018 +0000
@@ -51,10 +51,6 @@
 //Button Interrupts
 InterruptIn stopButton(PTD4);
 InterruptIn goButton(PTA12);
-//Camera timers
-//DigitalOut si(PTC8);
-//PwmOut clk(PTC9);
-//InterruptIn edgeDetector(PTD5);
 
 /***********************************|Variable Declarations|*************************************************************/
 
@@ -257,10 +253,10 @@
         servoSig.write(Controlleroutput);
     }
     fbPrev = fb;
-    data[0] = _right.read();
-    data[1] = _left.read();
-    data[2] = Controlleroutput;
-    data[3] = e;
+//    data[0] = _right.read();
+//    data[1] = _left.read();
+//    data[2] = Controlleroutput;
+//    data[3] = e;
     
 }
 void drive()
@@ -275,8 +271,8 @@
     if(output < MINM) output = MINM;        
 
     gateDrive.write(output);
-    data[4] = gateDrive.read();
-    data[5] = speed.read(); 
+//    data[4] = gateDrive.read();
+//    data[5] = speed.read(); 
 }
 
 void cb()