Bart's version for testing step/dir control

Dependencies:   mbed-dev-f303 FastPWM3

Revision:
22:60276ba87ac6
Parent:
20:bf9ea5125d52
Child:
25:f5741040c4bb
--- a/Config/motor_config.h	Thu Mar 02 15:31:45 2017 +0000
+++ b/Config/motor_config.h	Fri Mar 31 18:24:46 2017 +0000
@@ -1,12 +1,14 @@
 #ifndef MOTOR_CONFIG_H
 #define MOTOR_CONFIG_H
 
-#define R_PHASE 0.1f
-#define L_D 0.00003f
-#define L_Q 0.00003f
+#define R_PHASE 0.105f            //Ohms
+#define L_D 0.00003f            //Henries
+#define L_Q 0.00003f            //Henries
+#define KT .07f                 //N-m per peak phase amp (= RMS amps/1.5)
+#define NPP 21                  //Number of pole pairs
 
-#define R_TOTAL 1.5f*R_PHASE
-#define NPP 21
+#define WB KT/NPP               //Webers.  
+
 
 
 #endif