N K
/
GaNtroller
a fork of priustroller
Fork of priustroller_current by
Diff: callbacks.cpp
- Revision:
- 42:e4f35ff78d91
- Parent:
- 39:6f3d08745cd9
- Child:
- 44:1be63ea70fe8
diff -r 6f3d08745cd9 -r e4f35ff78d91 callbacks.cpp --- a/callbacks.cpp Thu Apr 16 22:24:37 2015 +0000 +++ b/callbacks.cpp Thu Apr 16 22:55:21 2015 +0000 @@ -67,6 +67,14 @@ c->inverter->SetDtcC(0.5f + 0.5f * FastSin(angle240) * c->user->throttle); } +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);