PID Controller Tuning for a Model with Discontinuities