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:
- 43:fb4b7b0c8f34
- Parent:
- 41:0a573cf3e9b9
- Child:
- 44:1be63ea70fe8
diff -r 0a573cf3e9b9 -r fb4b7b0c8f34 callbacks.cpp --- a/callbacks.cpp Thu Apr 16 22:55:42 2015 +0000 +++ b/callbacks.cpp Thu Apr 16 23:05:23 2015 +0000 @@ -60,8 +60,8 @@ if (angle120 >= 360.0f) angle120 -= 360.0f; if (angle120 < 0.0f) angle120 += 360.0f; angle240 = angle -120.0f; - if (angle120 >= 360.0f) angle240 -= 360.0f; - if (angle120 < 0.0f) angle240 += 360.0f; + if (angle240 >= 360.0f) angle240 -= 360.0f; + if (angle240 < 0.0f) angle240 += 360.0f; dbg_dtcA = 0.5f + 0.5f * FastSin(angle) * c->user->throttle; dbg_dtcC = 0.5f + 0.5f * FastSin(angle120) * c->user->throttle;