PID control

Robin2:
I wonder if there is any point in calling it more frequently than the input data can change?

No. Half the update rate of the sensor (according to Nyquist; who was smart and actually did the proof).

See @Southpark's post above regarding the sensor sample rate.