![](/media/cache/profiles/altb_JGUSAOG.jpg.50x50_q85.jpg)
Mirror actuator for RT2 lab
Library_Cntrl/PID_Cntrl.cpp@12:8ea956a5c1d8, 2021-04-28 (annotated)
- Committer:
- altb2
- Date:
- Wed Apr 28 13:10:16 2021 +0000
- Revision:
- 12:8ea956a5c1d8
Template for students
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
altb2 | 12:8ea956a5c1d8 | 1 | /* |
altb2 | 12:8ea956a5c1d8 | 2 | */ |
altb2 | 12:8ea956a5c1d8 | 3 | |
altb2 | 12:8ea956a5c1d8 | 4 | #include "PID_Cntrl.h" |
altb2 | 12:8ea956a5c1d8 | 5 | |
altb2 | 12:8ea956a5c1d8 | 6 | PID_Cntrl::PID_Cntrl(float P, float I, float D, float tau_f, float Ts, float uMin, float uMax) |
altb2 | 12:8ea956a5c1d8 | 7 | { |
altb2 | 12:8ea956a5c1d8 | 8 | // ------------------ |
altb2 | 12:8ea956a5c1d8 | 9 | } |
altb2 | 12:8ea956a5c1d8 | 10 | |
altb2 | 12:8ea956a5c1d8 | 11 | PID_Cntrl::~PID_Cntrl() {} |
altb2 | 12:8ea956a5c1d8 | 12 | |
altb2 | 12:8ea956a5c1d8 | 13 | void PID_Cntrl::reset(float initValue) |
altb2 | 12:8ea956a5c1d8 | 14 | { |
altb2 | 12:8ea956a5c1d8 | 15 | |
altb2 | 12:8ea956a5c1d8 | 16 | // ----------------------- |
altb2 | 12:8ea956a5c1d8 | 17 | } |
altb2 | 12:8ea956a5c1d8 | 18 | |
altb2 | 12:8ea956a5c1d8 | 19 | |
altb2 | 12:8ea956a5c1d8 | 20 | float PID_Cntrl::update(float e) |
altb2 | 12:8ea956a5c1d8 | 21 | { |
altb2 | 12:8ea956a5c1d8 | 22 | // the main update |
altb2 | 12:8ea956a5c1d8 | 23 | return 0.0; |
altb2 | 12:8ea956a5c1d8 | 24 | } |