PID Simulation C