working version

Dependencies:   FastPWM3 mbed

Fork of foc-ed_in_the_bot_compact by Bayley Wang

Revision:
12:5723a4fa5864
Parent:
10:f49df0fe0382
Child:
13:41d102a53caf
--- a/config.h	Tue May 24 02:35:41 2016 +0000
+++ b/config.h	Sun Oct 30 01:37:30 2016 +0000
@@ -1,15 +1,15 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#define POS_OFFSET 1.73f
+#define POS_OFFSET 1.49f //1.73f
 #define POLE_PAIRS 3.0f
 #define RESOLVER_LOBES 3.0f
-#define CURRENT_U ia
-#define CURRENT_V ib
+#define CURRENT_U ib
+#define CURRENT_V ia
 #define CPR 4096
 
-#define PWMA PA_8
-#define PWMB PA_9
+#define PWMA PA_9
+#define PWMB PA_8
 #define PWMC PA_10
 #define EN PB_15