SAE WS_2324
Loading...
Searching...
No Matches
pid_controller.pid Class Reference

PID Controller Module Base Class. More...

Public Member Functions

 __init__ (self, kp, ki, kd, isat, Ts)
 PID Controller Class Initializer Function.
 
 run_pi (self, ref, fdb)
 PID Controller method to run a single instance of a controller.
 

Public Attributes

 kp
 Proportional Term Coefficient.
 
 ki
 Integral Term Coefficient.
 
 kd
 Differential Term Coefficient.
 
 iterm
 Integral Controller Sum.
 
 pterm
 Proportional Term Sum.
 
 dterm
 Differential Term Sum.
 
 out
 PID controller output.
 
 ref
 PID Controller Reference/ Set Value.
 
 fdb
 PID Controller Feedback Value.
 
 error
 Controller Compensation required or difference between set value and feedback.
 
 isat
 Saturation value for integram controller as this is a saturation type PID Controller.
 
 Ts
 Sampling time of the controller.
 

Detailed Description

PID Controller Module Base Class.

The Base class of PID Controller contains the data and the methods required to implement the PID Controller.

Member Function Documentation

◆ run_pi()

pid_controller.pid.run_pi ( self,
ref,
fdb )

PID Controller method to run a single instance of a controller.

This method will take the reference and feedback value arguments and will run the PID Controller. The output can be accessed by the #pid.out for a particular instance of the controller.

Parameters
refRefernce input Value
fdbFeedback reference Value

The documentation for this class was generated from the following file: