temp repo

Dependencies:   mbed

Fork of priustroller_2 by N K

Revision:
6:99ee0ce47fb2
Parent:
1:1f58bdcf2956
Child:
7:76d6ceb23e0d
--- a/inverter.cpp	Tue Mar 03 06:28:10 2015 +0000
+++ b/inverter.cpp	Wed Mar 04 15:33:32 2015 +0000
@@ -32,19 +32,19 @@
 void Inverter::SetDtcA(float dtc) {
     if (dtc < 0) dtc = 0.0f;
     if (dtc > 1.0f) dtc = 1.0f;
-    *_pwm_a = dtc;
+    *_pwm_a = dtcA = dtc;
 } 
 
 void Inverter::SetDtcB(float dtc) {
     if (dtc < 0) dtc = 0.0f;
     if (dtc > 1.0f) dtc = 1.0f;
-    *_pwm_b = 1.0f - dtc;
+    *_pwm_b = dtcB = 1.0f - dtc;
 } 
 
 void Inverter::SetDtcC(float dtc) {
     if (dtc < 0) dtc = 0.0f;
     if (dtc > 1.0f) dtc = 1.0f;
-    *_pwm_c = dtc;
+    *_pwm_c = dtcC = dtc;
 }
 
 void Inverter::Enable() {