stock mbed AnalogReads current loop closed and working

Dependencies:   mbed

Fork of priustroller_2 by N K

Revision:
44:1be63ea70fe8
Parent:
43:fb4b7b0c8f34
Parent:
42:e4f35ff78d91
Child:
45:a478506acc92
--- a/callbacks.cpp	Thu Apr 16 23:05:23 2015 +0000
+++ b/callbacks.cpp	Thu Apr 16 23:07:39 2015 +0000
@@ -71,6 +71,14 @@
     c->inverter->SetDtcC(dbg_dtcC);
 }
 
+void fast_test2(Context *c) {
+    float vd, vq;
+    vd = 0.0f;
+    vq = c->user->throttle;
+    InverseParke(vd, vq, angle, &valpha, &vbeta);
+    c->modulator->Update(valpha, vbeta):
+}
+
 void slow(Context *c) {
     c->user->UpdateThrottle();
     //c->user->throttle = c->filter_th->Update(c->user->throttle);