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:
10:3012bacdfc55
Parent:
9:af60c737a93e
Child:
11:8dc1e36579e2
--- a/main.cpp	Wed Apr 13 15:57:56 2016 +0000
+++ b/main.cpp	Wed Apr 13 16:24:11 2016 +0000
@@ -109,31 +109,37 @@
     {
         Brise();
         Afall();
+        Crise();
     }
     else if(h1 == 0 && h2 == 0 && h3 == 1)  //state2
     {
         Afall();
         Crise();
+        Bfall();
     }
     else if(h1 == 1 && h2 == 0 && h3 == 1)  //state3
     {
         Crise();
         Bfall();
+        Arise();
     }
     else if(h1 == 1 && h2 == 0 && h3 == 0)     //state4
     {
         Bfall();
         Arise();
+        Cfall();
     }
     else if(h1 == 1 && h2 == 1 && h3 == 0)  //state5
     {
         Arise();
         Cfall();
+        Brise();
     }
     else    //(h1 == 0 && h2 == 1 && h3 == 0)state6
     {
         Cfall();
         Brise();
+        Afall();
     } 
 }