temp repo

Dependencies:   mbed

Fork of priustroller_2 by N K

Revision:
21:da41c08e51bc
Parent:
20:3a7eae543153
Child:
22:46d164aa4f1c
diff -r 3a7eae543153 -r da41c08e51bc meta/modulators.cpp
--- a/meta/modulators.cpp	Mon Mar 09 03:36:59 2015 +0000
+++ b/meta/modulators.cpp	Mon Mar 09 05:07:49 2015 +0000
@@ -34,8 +34,8 @@
                 t2 = vc;
             }
             else {// Sector 1: (0,0,1) 60-120 degrees
-                t1 = -vb;
-                t2 = -vc;
+                t1 = -vc; //was -vb
+                t2 = -vb; //was -vc
             }
         }
     } else { // (xx0)
@@ -45,15 +45,15 @@
                 t2 = vb;
             }
             else {// Sector 2: (0,1,0) 300-0 degrees
-                t1 = -vc;
-                t2 = -va;
+                t1 = -va; //was -vc
+                t2 = -vc; //was -va
             }
         }
         else { // (x00)
             // Must be Sector 4 since Sector 0 not allowed
             // Sector 4: (1,0,0) 180-240 degrees
-            t1 = -va;
-            t2 = -vb;
+            t1 = -vb;  //was -va
+            t2 = -va;  //was -vb
         }
     }
     
@@ -64,5 +64,8 @@
     _inverter->SetDtcA(dtcA);
     _inverter->SetDtcB(dtcB);
     _inverter->SetDtcC(dtcC);
-    
+
+    dbg_dtcA = dtcA;
+    dbg_dtcB = dtcB;
+    dbg_dtcC = dtcC;
 }
\ No newline at end of file