Self balancing unicycle code. need help with data from PID

To see the values of the two variables "prevErr, curErr", you will need to print them before the "=" part of the code that I mentioned. You can put prints inside of the function before line 209 to debug your code. After you are able to see the output, then you can remove them or continue looking for the problem.