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 analoghalls5 by
modulators.cpp
00001 #include "includes.h" 00002 #include "meta.h" 00003 00004 void SinusoidalModulator::Update(float va, float vb) { 00005 _inverter->va = va; 00006 _inverter->vb = vb; 00007 00008 _inverter->SetDtcB(va/2.0f + 0.5f); 00009 _inverter->SetDtcC((-va / 2.0f - sqrt(3.0f) / 2.0f * vb)/2.0f + 0.5f); 00010 _inverter->SetDtcA((-va / 2.0f + sqrt(3.0f) / 2.0f * vb)/2.0f + 0.5f); 00011 00012 00013 test_DtcB = va; 00014 test_DtcC = -va / 2.0f - sqrt(3.0f) / 2.0f * vb; 00015 test_DtcA = -va / 2.0f + sqrt(3.0f) / 2.0f * vb; 00016 00017 00018 /* 00019 _inverter->SetDtcA(1.0f); 00020 _inverter->SetDtcB(0.5f); 00021 _inverter->SetDtcC(1.0f); 00022 */ 00023 }
Generated on Fri Jul 15 2022 12:15:05 by
1.7.2
