stock mbed AnalogReads current loop closed and working

Dependencies:   mbed

Fork of priustroller_2 by N K

Revision:
38:232c51b6853f
Parent:
37:09373294ff22
Child:
42:e4f35ff78d91
--- a/main.cpp	Thu Apr 16 07:12:36 2015 +0000
+++ b/main.cpp	Thu Apr 16 21:57:38 2015 +0000
@@ -16,9 +16,10 @@
     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(80.0f);  // max phase current
-    context->ConfigureDebugger(1, 4000);
-    context->AttachCallBack(&fast, 5000);
-    context->AttachCallBack(&slow, 10);
+    context->ConfigureDebugger(2, 4000);
+    //context->AttachCallBack(&fast, 5000);
+    context->AttachCallBack(&fast_test, 5000);
+    context->AttachCallBack(&slow, 20);
     context->AttachCallBack(&debug, 10);
     context->AttachCallBack(&log, 500);
     context->Start();