stock mbed AnalogReads current loop closed and working

Dependencies:   mbed

Fork of priustroller_2 by N K

Revision:
50:16b43e8fe04f
Parent:
49:0603121a0538
Child:
51:14112834b067
--- a/main.cpp	Tue Apr 21 03:52:08 2015 +0000
+++ b/main.cpp	Fri Apr 24 16:19:29 2015 +0000
@@ -15,7 +15,7 @@
     context->ConfigureIqPidController(0.0001f, 0.0f, 0.0f, 1.0f, -1.0f);
     context->ConfigureThrottle(A0, 0.9f, 2.5f, 0.8f);  //last term is LPF strength
     context->ConfigurePositionSensor(A3, A4, 0.366f, 0.655f, 0.355f, 0.626f, 205.0f);
-    context->ConfigureReference(20.0f);  // max phase current
+    context->ConfigureReference(300.0f);  // max phase current
     context->ConfigureDebugger(1, 2000);
     context->AttachCallBack(&fast, 5000);
     context->AttachCallBack(&slow, 10);