PID (control engineering) with C++


I'm a control engineering student working on a C++ programmed UAV.
I need to implement PID control on it.

Does anyone have a clue on how to write a continuous
PID transfer function to discrete form in C++ code?

Basically, I need to transform Integral and Derivative into discrete forms.

Best regards,
Tudor V.

Topic archived. No new replies allowed.