Autopilot configuration reference: Difference between revisions

Jump to navigation Jump to search
m
table
m (table)
Line 128: Line 128:


=== 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, 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 [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 <tt><pid-controller></tt>.
The xml element creating a pid controller is <tt><pid-controller></tt>.
Legal elements are:
Legal elements are:
;Kp
 
: the overall gain for the proportional, integral and derivative part
{| class="prettytable"
;Ti
!Kp
: integrator time
|the overall gain for the proportional, integral and derivative part
;Td
|-
: derivator time
!Ti
;Ts
|integrator time
: sampling interval (default: sample at frame rate)
|-
;alpha
!Td
: scaling factor for Td (defaults to 0.1)
|derivator time
;beta
|-
: reference weighing factor for the proportional component (defaults to 1.0)
!Ts
;gamma
|sampling interval (default: sample at frame rate)
: reference weighing factor for the derivate component (defaults to 0.0)
|-
!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 ===

Navigation menu