N K
/
GaNtroller
a fork of priustroller
Fork of priustroller_current by
Diff: meta/pidcontroller.cpp
- Revision:
- 21:da41c08e51bc
- Parent:
- 11:dccbaa9274c5
- Child:
- 24:f1ff9c7256b5
diff -r 3a7eae543153 -r da41c08e51bc meta/pidcontroller.cpp --- a/meta/pidcontroller.cpp Mon Mar 09 03:36:59 2015 +0000 +++ b/meta/pidcontroller.cpp Mon Mar 09 05:07:49 2015 +0000 @@ -12,6 +12,7 @@ } float PidController::Update(float ref, float in) { + /* float error = ref - in; _integral += error; if (_integral * _ki > _out_max) _integral = _out_max / _ki; @@ -22,4 +23,6 @@ if (tmp > _out_max) tmp = _out_max; if (tmp < _out_min) tmp = _out_min; return tmp; + */ + return 0.0f; } \ No newline at end of file