temp repo

Dependencies:   mbed

Fork of priustroller_2 by N K

Revision:
7:76d6ceb23e0d
Parent:
6:99ee0ce47fb2
diff -r 99ee0ce47fb2 -r 76d6ceb23e0d inverter.cpp
--- a/inverter.cpp	Wed Mar 04 15:33:32 2015 +0000
+++ b/inverter.cpp	Thu Mar 05 11:02:54 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 = dtcA = dtc;
+    *_pwm_a = dtc;
 } 
 
 void Inverter::SetDtcB(float dtc) {
     if (dtc < 0) dtc = 0.0f;
     if (dtc > 1.0f) dtc = 1.0f;
-    *_pwm_b = dtcB = 1.0f - dtc;
+    *_pwm_b = 1.0f - dtc;
 } 
 
 void Inverter::SetDtcC(float dtc) {
     if (dtc < 0) dtc = 0.0f;
     if (dtc > 1.0f) dtc = 1.0f;
-    *_pwm_c = dtcC = dtc;
+    *_pwm_c = dtc;
 }
 
 void Inverter::Enable() {