examples/PidctrlDemo: complete rewrite of the demo