temp repo

Dependencies:   mbed

Fork of priustroller_2 by N K

Committer:
bwang
Date:
Sun Mar 08 08:37:38 2015 +0000
Revision:
11:dccbaa9274c5
Child:
13:79e247e54d78
--Initial Commit: 03-08-2015 new context-based code; no more timers (=easier debugging)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bwang 11:dccbaa9274c5 1 #include "includes.h"
bwang 11:dccbaa9274c5 2 #include "core.h"
bwang 11:dccbaa9274c5 3 #include "meta.h"
bwang 11:dccbaa9274c5 4 #include "sensors.h"
bwang 11:dccbaa9274c5 5 #include "lut.h"
bwang 11:dccbaa9274c5 6
bwang 11:dccbaa9274c5 7 void SinusoidalModulator::Update(float va, float vb) {
bwang 11:dccbaa9274c5 8 _inverter->SetDtcA(va);
bwang 11:dccbaa9274c5 9 _inverter->SetDtcB(((-va + sqrt(3.0f) * vb) / 2.0f));
bwang 11:dccbaa9274c5 10 _inverter->SetDtcC(((-va - sqrt(3.0f) * vb) / 2.0f));
bwang 11:dccbaa9274c5 11 }