N K
/
GaNtroller
a fork of priustroller
Fork of priustroller_current by
Diff: callbacks.cpp
- Revision:
- 41:0a573cf3e9b9
- Parent:
- 40:b2bd9a097e3f
- Child:
- 43:fb4b7b0c8f34
diff -r b2bd9a097e3f -r 0a573cf3e9b9 callbacks.cpp --- a/callbacks.cpp Thu Apr 16 22:45:38 2015 +0000 +++ b/callbacks.cpp Thu Apr 16 22:55:42 2015 +0000 @@ -63,9 +63,9 @@ if (angle120 >= 360.0f) angle240 -= 360.0f; if (angle120 < 0.0f) angle240 += 360.0f; - dbg_dtcB = 0.5f + 0.5f * FastSin(angle) * c->user->throttle; - dbg_dtcA = 0.5f + 0.5f * FastSin(angle120) * c->user->throttle; - dbg_dtcC = 0.5f + 0.5f * FastSin(angle240) * c->user->throttle; + dbg_dtcA = 0.5f + 0.5f * FastSin(angle) * c->user->throttle; + dbg_dtcC = 0.5f + 0.5f * FastSin(angle120) * c->user->throttle; + dbg_dtcB = 0.5f + 0.5f * FastSin(angle240) * c->user->throttle; c->inverter->SetDtcA(dbg_dtcA); c->inverter->SetDtcB(dbg_dtcB); c->inverter->SetDtcC(dbg_dtcC);