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 priustroller_current by
Revision 55:f102d271e808, committed 2015-05-21
- Comitter:
- nki
- Date:
- Thu May 21 02:19:25 2015 +0000
- Parent:
- 54:e8d9bc885723
- Commit message:
- still testing;
Changed in this revision
callbacks.cpp | 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/callbacks.cpp Tue May 19 08:50:42 2015 +0000 +++ b/callbacks.cpp Thu May 21 02:19:25 2015 +0000 @@ -75,6 +75,6 @@ void log(Context *c) { //c->debugger->Write(0, dbg_speed); //c->debugger->Write(1, dbg_q_filtered); - //c->debugger->Write(2, dbg_ref_q); - //c->debugger->Write(3, dbg_loop_q); + //c->debugger->Write(2, dbg_d_filtered); + //c->debugger->Write(3, dbg_angle); } \ No newline at end of file
--- a/main.cpp Tue May 19 08:50:42 2015 +0000 +++ b/main.cpp Thu May 21 02:19:25 2015 +0000 @@ -14,7 +14,7 @@ context->ConfigureIdPidController(0.0000032f, 0.0f, 0.0f, 1.0f, -1.0f); context->ConfigureIqPidController(0.0000032f, 0.0f, 0.0f, 1.0f, -1.0f); context->ConfigureThrottle(A0, 0.9f, 2.5f, 0.99f); //last term is LPF strength - context->ConfigurePositionSensor(A3, A4, 0.366f, 0.655f, 0.355f, 0.626f, 205.0f); + context->ConfigurePositionSensor(A3, A4, 0.366f, 0.655f, 0.355f, 0.626f, 275.0f); //205 is default context->ConfigureReference(200.0f); // max phase current context->ConfigureDebugger(4, 2000); context->AttachCallBack(&fast, 5000);