PID Algorithm

How does autopilot cards calculate the PID value? Do you have any explanatory schema, information or visuals on this topic?
Thanks a lot.


ArduSub has two main control class, for position and attitude. Both based over the copter control. The last link contains videos, graphs and references.