N K
/
GaNtroller
a fork of priustroller
Fork of priustroller_current by
Diff: meta/modulators.cpp
- Revision:
- 11:dccbaa9274c5
- Child:
- 13:79e247e54d78
--- /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