change encoder pulses to degrees

This this is the code I used to have the degrees wrap around. it's simple

      if (YawInput > 180) YawInput -= 360; // rollover to negative
      if (YawInput < -180) YawInput += 360; // rollover to positive

as for converting the pulses to degrees just add them to the variable and reset it to zero.

YawInput  += PulseCount
PulseCount = 0;

z