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.
Diff: SVM/SVM.cpp
- Revision:
- 10:370851e6e132
- Parent:
- 6:4ee1cdc43aa8
--- a/SVM/SVM.cpp Tue May 10 01:15:57 2016 +0000
+++ b/SVM/SVM.cpp Thu May 12 05:02:52 2016 +0000
@@ -10,6 +10,7 @@
_V_Bus = V_Bus;
}
+//sinusoidal PWM
void SPWM::Update_DTC(float V_A, float V_B, float V_C){
float DTC_A = V_A/_V_Bus + .5f;
float DTC_B = V_B/_V_Bus + .5f;
@@ -29,6 +30,7 @@
_V_Bus = V_Bus;
}
+//space vector pwm (better bus utilization)
void SVPWM::Update_DTC(float V_A, float V_B, float V_C){
float Voff = (min(V_A, V_B, V_C) + max(V_A, V_B, V_C))/2.0f;