sistem PID
Fork of kontrolPID by
Revision 3:8607359f4813, committed 2017-11-29
- Comitter:
- Fathoni17
- Date:
- Wed Nov 29 05:02:05 2017 +0000
- Parent:
- 2:b37bdc0b8677
- Commit message:
- PID teta berjalan lancar; KontolPID insyaAllah sudah bisa digunakan
Changed in this revision
kontrolPID.cpp | Show annotated file Show diff for this revision Revisions of this file |
kontrolPID.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/kontrolPID.cpp Mon Nov 06 14:52:38 2017 +0000 +++ b/kontrolPID.cpp Wed Nov 29 05:02:05 2017 +0000 @@ -3,11 +3,11 @@ float _kP, _kI, _kD; float _last_output; int _interval; -short _limit_Min, _limit_Max; +float _limit_Min, _limit_Max; float _current_Error, _sum_Error, _delta_Error, _previous_Error_1, _previous_Error_2; float _controller_Output; kontrolPID::kontrolPID( int interval, - short limit_Min, short limit_Max, + float limit_Min, float limit_Max, float kP, float kI, float kD){ _kP = kP; _kI = kI;
--- a/kontrolPID.h Mon Nov 06 14:52:38 2017 +0000 +++ b/kontrolPID.h Wed Nov 29 05:02:05 2017 +0000 @@ -6,7 +6,7 @@ class kontrolPID{ public: kontrolPID( int interval, - short limit_Min, short limit_Max, + float limit_Min, float limit_Max, float kP, float kI = 0, float kD = 0); void resetPID(); float hitungPID(float _process_Value, float _set_Point);