PID
Dependencies: BLE_API mbed nRF51822
Diff: PID.cpp
- Revision:
- 1:d3e12393b71d
- Parent:
- 0:1f4d5c5491b8
--- a/PID.cpp Mon Oct 24 16:10:48 2016 +0000 +++ b/PID.cpp Thu Jan 12 16:04:37 2017 +0000 @@ -1,13 +1,10 @@ #include "PID.h" -PIDClass::PIDClass(int _Kr,int _Ki, int _Kd,int _SetPoint):Kr(_Kr),Ki(_Ki),Kd(_Kd),SetPoint(_SetPoint) +PIDClass::PIDClass(float _Kr,float _Ki, float _Kd,float _SetPoint):Kr(_Kr),Ki(_Ki),Kd(_Kd),SetPoint(_SetPoint) { - /*Kr = _Kr; - Ki = _Ki; - Kd = _Kd;*/ + // } - float PIDClass::ComputeCommand(float inputADC) { static PID_static param;