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:
- 44:1be63ea70fe8
- Parent:
- 43:fb4b7b0c8f34
- Parent:
- 42:e4f35ff78d91
- Child:
- 45:a478506acc92
diff -r fb4b7b0c8f34 -r 1be63ea70fe8 callbacks.cpp --- 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);