Self balancing unicycle code. need help with data from PID

my previous error and current error in the pid calculations are the same number.

On line 209.

 prevErr = curErr;