Bayley Wang
/
priustroller_3
temp repo
Fork of priustroller_2 by
Diff: core/core.h
- Revision:
- 30:2b6d426f3bfc
- Parent:
- 29:cb03760ba9ea
- Child:
- 33:e7b132029bae
--- a/core/core.h Sat Mar 14 23:42:46 2015 +0000 +++ b/core/core.h Sun Mar 15 01:45:22 2015 +0000 @@ -14,6 +14,7 @@ class Motor { public: Motor(PositionSensor *sense_p, TempSensor *sense_t); + void InitSensors(float ib_zero, float ic_zero, float scale); void Config(int num_poles, float kv); float GetCurrentC(); float GetCurrentB(); @@ -25,6 +26,8 @@ int _num_poles; float _kv; float _ib, _ic; + float _ib_zero, _ic_zero; + float _scale; }; class Inverter {