N K / Mbed 2 deprecated foc-ed_in_the_bot_compact

Dependencies:   FastPWM3 mbed

Fork of foc-ed_in_the_bot_compact by Bayley Wang

Files at this revision

API Documentation at this revision

Comitter:
bwang
Date:
Sun Mar 27 18:48:51 2016 +0000
Parent:
5:efd3838b79a6
Commit message:
emrax still doesn't really work

Changed in this revision

config.h Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/config.h	Sun Mar 27 03:40:52 2016 +0000
+++ b/config.h	Sun Mar 27 18:48:51 2016 +0000
@@ -17,7 +17,7 @@
 
 #define PI 3.141593f
 #define CPR 4096
-#define POS_OFFSET 1.57f//1.82f
+#define POS_OFFSET 1.82f
 
 #define I_SCALE_RAW 25.0f //mv/A
 #define R_UP 12000.0f //ohms
--- a/main.cpp	Sun Mar 27 03:40:52 2016 +0000
+++ b/main.cpp	Sun Mar 27 18:48:51 2016 +0000
@@ -99,8 +99,8 @@
     if (vq < -1.0f) vq = -1.0f;
     if (vq > 1.0f) vq = 1.0f;
     
-    //vd = 0.0f;
-    //vq = 1.0f;
+    vd = 0.0f;
+    vq = -1.0f;
     
     //DAC->DHR12R2 = (unsigned int) (-q * 20 + 2048);
     //DAC->DHR12R2 = (unsigned int) (-vd * 2000 + 2048);