![](/media/cache/profiles/altb_JGUSAOG.jpg.50x50_q85.jpg)
corrections altb2
Lib_Cntrl/PID_Cntrl.cpp@0:d2e117716219, 2021-05-02 (annotated)
- Committer:
- altb2
- Date:
- Sun May 02 19:32:30 2021 +0000
- Revision:
- 0:d2e117716219
- Child:
- 1:25a2b47ca291
1st commit;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
altb2 | 0:d2e117716219 | 1 | /* |
altb2 | 0:d2e117716219 | 2 | */ |
altb2 | 0:d2e117716219 | 3 | |
altb2 | 0:d2e117716219 | 4 | #include "PID_Cntrl.h" |
altb2 | 0:d2e117716219 | 5 | |
altb2 | 0:d2e117716219 | 6 | PID_Cntrl::PID_Cntrl(float P, float I, float D, float tau_f, float Ts, float uMin, float uMax) |
altb2 | 0:d2e117716219 | 7 | { |
altb2 | 0:d2e117716219 | 8 | // ------------------ |
altb2 | 0:d2e117716219 | 9 | } |
altb2 | 0:d2e117716219 | 10 | |
altb2 | 0:d2e117716219 | 11 | PID_Cntrl::~PID_Cntrl() {} |
altb2 | 0:d2e117716219 | 12 | |
altb2 | 0:d2e117716219 | 13 | void PID_Cntrl::reset(float initValue) |
altb2 | 0:d2e117716219 | 14 | { |
altb2 | 0:d2e117716219 | 15 | |
altb2 | 0:d2e117716219 | 16 | // ----------------------- |
altb2 | 0:d2e117716219 | 17 | } |
altb2 | 0:d2e117716219 | 18 | |
altb2 | 0:d2e117716219 | 19 | |
altb2 | 0:d2e117716219 | 20 | float PID_Cntrl::update(float e) |
altb2 | 0:d2e117716219 | 21 | { |
altb2 | 0:d2e117716219 | 22 | // the main update |
altb2 | 0:d2e117716219 | 23 | return 0.0; |
altb2 | 0:d2e117716219 | 24 | } |