Fork and fix for mwork

Dependencies:   mbed-dev-f303 FastPWM3 millis

Revision:
51:6cd89bd6fcaa
Parent:
37:c0f352d6e8e3
Child:
54:3e056b097c52
--- a/Config/user_config.h	Thu Apr 04 13:53:58 2019 +0000
+++ b/Config/user_config.h	Wed Jul 17 03:40:12 2019 +0000
@@ -7,9 +7,10 @@
 #define E_OFFSET                __float_reg[0]                                  // Encoder electrical offset
 #define M_OFFSET                __float_reg[1]                                  // Encoder mechanical offset
 #define I_BW                    __float_reg[2]                                  // Current loop bandwidth
-#define TORQUE_LIMIT            __float_reg[3]                                  // Torque limit (current limit = torque_limit/(kt*gear ratio))
+#define I_MAX                   __float_reg[3]                                  // Torque limit (current limit = torque_limit/(kt*gear ratio))
 #define THETA_MIN               __float_reg[4]                                  // Minimum position setpoint
 #define THETA_MAX               __float_reg[5]                                  // Maximum position setpoint
+#define I_FW_MAX                __float_reg[6]                                  // Maximum field weakening current
 
 
 #define PHASE_ORDER             __int_reg[0]                                    // Phase swapping during calibration
@@ -20,6 +21,7 @@
 
 
 
+
 extern float __float_reg[];
 extern int __int_reg[];