Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of priustroller_2 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) {