Rotation negative after 180 degrees

im having a similar issue, i have a drone that tilts sideways on its Y axis depending on the Z rotation amount, however once it goes from 180 to a - value or the other way around from 50 to -50 as soon as the value becomes negative the Y axis jumps to the opposite side (instead of going smoothly as it does from 0 to 180, or even from -1 to -180)…

adding +180 to keep it as a positive value always did nothing if not make this even more buggy for me…

did you figure this out?