N K
/
GaNtroller
a fork of priustroller
Fork of priustroller_current by
Diff: callbacks.cpp
- Revision:
- 45:a478506acc92
- Parent:
- 44:1be63ea70fe8
- Child:
- 48:28edb4c5c04b
diff -r 1be63ea70fe8 -r a478506acc92 callbacks.cpp --- a/callbacks.cpp Thu Apr 16 23:07:39 2015 +0000 +++ b/callbacks.cpp Thu Apr 16 23:20:24 2015 +0000 @@ -72,11 +72,12 @@ } void fast_test2(Context *c) { - float vd, vq; + float vd, vq, valpha, vbeta, angle; + angle = c->motor->GetPosition(); vd = 0.0f; vq = c->user->throttle; InverseParke(vd, vq, angle, &valpha, &vbeta); - c->modulator->Update(valpha, vbeta): + c->modulator->Update(valpha, vbeta); } void slow(Context *c) {