Autopilot configuration reference: Difference between revisions

Jump to navigation Jump to search
→‎pid-controller: Chang formatting to use a definition list.
(→‎pid-controller: Chang formatting to use a definition list.)
Line 65: Line 65:


=== pid-controller ===
=== pid-controller ===
The [[http://en.wikipedia.org/wiki/PID_controller PID controller]] is the swiss army knife of automation and this implementation is suitable for most situations. It has a builtin anti-windup logic, usage of <max> and <min> elements for output clamp is mandatory. Most important thing to know is that this controller does not compute absolute output values but an offset from the current value of the output property. This can lead to unexpected behavior if the current value of the output property is unknown when the controller is enabled. This behavior is different to that of the pi-simple-controller.
The [[http://en.wikipedia.org/wiki/PID_controller PID controller]] is the swiss army knife of automation and this implementation is suitable for most situations. It has a builtin anti-windup logic, and usage of <max> and <min> elements for calmping the output is mandatory. The most important thing to know is that this controller 'does not' compute absolute output values but an offset from the current value of the output property. This can lead to unexpected behavior if the current value of the output property is unknown when the controller is enabled. This behavior is different to that of the pi-simple-controller.
The xml element creating a pid controller is '''<pid-controller>'''.
The xml element creating a pid controller is <tt><pid-controller></tt>.
Legal elements are (FIXME: this should appear as a table)
Legal elements are:
Kp - the overall gain for the proportional, integral and derivative part
;Kp
Ti - integrator time
: the overall gain for the proportional, integral and derivative part
Td - derivator time
;Ti
Ts - sampling interval (default: sample at frame rate)
: integrator time
alpha - scaling factor for Td (defaults to 0.1)
;Td
beta - reference weighing factor for the proportional component (defaults to 1.0)
: derivator time
gamma - reference weighing factor for the derivate component (defaults to 0.0)  
;Ts
: sampling interval (default: sample at frame rate)
;alpha
: scaling factor for Td (defaults to 0.1)
;beta
: reference weighing factor for the proportional component (defaults to 1.0)
;gamma
: reference weighing factor for the derivate component (defaults to 0.0)


=== pi-simple-controller ===
=== pi-simple-controller ===
580

edits

Navigation menu