Senior design sensored code to run freescale motor with IM07M1; Ticker algorithm control

Dependencies:   mbed

Fork of Blue_Board_Test_2 by Brad VanderWilp

Revision:
14:0f50e85bd463
Parent:
13:08c700d71324
Child:
15:dddb511c39b4
--- a/main.cpp	Wed Apr 13 18:34:26 2016 +0000
+++ b/main.cpp	Wed Apr 13 18:54:12 2016 +0000
@@ -95,6 +95,10 @@
     phaseAEN = 1;
 }
 
+void toggleRedLed()
+{
+    redLed = !redLed; 
+}
 
 void jumpStart()
 {
@@ -131,7 +135,8 @@
     {
 //        Cfall();
         Brise();
-    } 
+    }
+    toggleRedLed();
 }
 
 void activate()
@@ -168,6 +173,8 @@
     }
 }
 
+
+
 int main() {     
     //wait until button push to start
     rpmInterrupt.attach(&rpmCalc, 1);