oops, sorry, I switched kp and ki when typing in a hurry. kp is ki and ki is kp
Time constants are 'included' in the k's.
I thought that if anyone needed a code snippet for PID, they probably wouldn't know exactly what effect each constant has, and probably would just "guess and check"