PID loop not working for rotational movement

Hmm I can’t see anything wrong in it although it is hard to read