Fork and fix for mwork

Dependencies:   mbed-dev-f303 FastPWM3 millis

Revision:
39:3580a907ef93
Parent:
38:67e4e1453a4b
Child:
40:cd7e837b2b93
diff -r 67e4e1453a4b -r 3580a907ef93 main.cpp
--- a/main.cpp	Mon May 14 20:59:02 2018 +0000
+++ b/main.cpp	Mon May 14 21:01:06 2018 +0000
@@ -247,7 +247,6 @@
                 if(state_change){
                     enter_torque_mode();
                     count = 0;
-                    controller.t_ff = 15.0f;
                     }
                 else{
                 /*
@@ -271,11 +270,12 @@
                 commutate(&controller, &observer, &gpio, controller.theta_elec);           // Run current loop
                 controller.timeout += 1;
                 
+                /*
                 count++;
                 if(count == 40000){
-                     controller.t_ff = -controller.t_ff;
                      count = 0;
                      }
+                     */
                      
             
                 }