Bayley Wang
/
priustroller_3
temp repo
Fork of priustroller_2 by
Diff: core/core.h
- Revision:
- 29:cb03760ba9ea
- Parent:
- 11:dccbaa9274c5
- Child:
- 30:2b6d426f3bfc
--- a/core/core.h Sat Mar 14 19:18:34 2015 +0000 +++ b/core/core.h Sat Mar 14 23:42:46 2015 +0000 @@ -13,18 +13,18 @@ class Motor { public: - Motor(CurrentSensor *sense_c, CurrentSensor *sense_b, PositionSensor *sense_p, TempSensor *sense_t); + Motor(PositionSensor *sense_p, TempSensor *sense_t); void Config(int num_poles, float kv); float GetCurrentC(); float GetCurrentB(); float GetPosition(); float GetTemp(); private: - CurrentSensor *_sense_c,*_sense_b; PositionSensor *_sense_p; TempSensor *_sense_t; int _num_poles; float _kv; + float _ib, _ic; }; class Inverter {