STM32F302R8 with Konrad's inverter boards for senior design.

Dependencies:   mbed

Fork of Blue_Board_Ticker by Brad VanderWilp

Revision:
4:ab4d51b5b1c8
Parent:
3:2bcc36fe4de5
Child:
5:6110655353ad
--- a/main.cpp	Wed Apr 06 20:01:18 2016 +0000
+++ b/main.cpp	Wed Apr 06 20:10:39 2016 +0000
@@ -131,9 +131,8 @@
     button.rise(&activate);
     while(stall == 0) {
         led = !led;
-        wait(2);
+        wait(1);
     }
-    button.detach();
 
 //    //startup with open loop
 //    phaseA.period_us(10);
@@ -204,11 +203,12 @@
     else if(h1 == 1 && h2 == 1 && h3 == 0)  //state5
     {
         Brise();
-        Crise();
+        Afall();
     }
     else    //state6
     {
         Afall();
+        Crise();
     } 
     
     while(1) {