compass data wrap-around issue


    Jun 04 2011 | 2:37 am
    Hello!
    I am attempting to measure rotational velocity by sampling a number of recent compass readings. This works fine except that I get spikes when it hits the wrap-around point (360 to 0 or 0 to 360). I'd like to filter those out somehow if possible.
    I could lengthen the buffer to lessen their impact, but that's not the scientific approach!
    Any suggestions? Here is the patch:
    Thanks!
    MH

    • Jul 01 2011 | 2:19 am
      This worked out very well, thanks!
      MH