temp repo

Dependencies:   mbed

Fork of priustroller_2 by N K

Revision:
7:76d6ceb23e0d
Parent:
6:99ee0ce47fb2
diff -r 99ee0ce47fb2 -r 76d6ceb23e0d core.h
--- a/core.h	Wed Mar 04 15:33:32 2015 +0000
+++ b/core.h	Thu Mar 05 11:02:54 2015 +0000
@@ -13,17 +13,17 @@
 
 class Motor {
 public:
-    Motor(CurrentSensor *sense_c, CurrentSensor *sense_b, PositionSensor *sense_p, TempSensor *sense_t);
+    Motor(CurrentSensor *sense_a, CurrentSensor *sense_b, PositionSensor *sense_p, TempSensor *sense_t);
     void Config(int num_poles, float kv);
-    float UpdateCurrentC();
+    float UpdateCurrentA();
     float UpdateCurrentB();
     float UpdatePosition();
     float UpdateTemp();
     void UpdateState();
 public:
-    float angle, I_c, I_b, temp;
+    float angle, I_a, I_b, temp;
 private:
-    CurrentSensor *_sense_c,*_sense_b;
+    CurrentSensor *_sense_a,*_sense_b;
     PositionSensor *_sense_p;
     TempSensor *_sense_t;
     int _num_poles;
@@ -43,7 +43,6 @@
 public:
     float dtcA, dtcB, dtcC;
     float v_bus, temp;
-    float va, vb; //debug
 private:
     PwmOut *_pwm_a, *_pwm_b, *_pwm_c;
     DigitalOut *_en;