Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of foc-ed_in_the_bot_compact by
Revision 6:561d8ab80424, committed 2016-03-27
- 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);
