Bayley Wang
/
priustroller_3
temp repo
Fork of priustroller_2 by
Diff: meta/modulators.cpp
- Revision:
- 11:dccbaa9274c5
- Child:
- 13:79e247e54d78
diff -r b4abecccec7a -r dccbaa9274c5 meta/modulators.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/meta/modulators.cpp Sun Mar 08 08:37:38 2015 +0000 @@ -0,0 +1,11 @@ +#include "includes.h" +#include "core.h" +#include "meta.h" +#include "sensors.h" +#include "lut.h" + +void SinusoidalModulator::Update(float va, float vb) { + _inverter->SetDtcA(va); + _inverter->SetDtcB(((-va + sqrt(3.0f) * vb) / 2.0f)); + _inverter->SetDtcC(((-va - sqrt(3.0f) * vb) / 2.0f)); +} \ No newline at end of file