General Reference for PID Tuning

When you code looks like Image Add a negative sign to the values. then you should get something like Image