compass data wrap-around issue

Jun 4, 2011 at 2:37am

compass data wrap-around issue

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:

– Pasted Max Patch, click to expand. –

Thanks!
MH

#57392
Jun 4, 2011 at 6:21am

Hello,

few ideas …

– Pasted Max Patch, click to expand. –

HTH.

#205653
Jun 4, 2011 at 6:21am

Hello,

few ideas …

– Pasted Max Patch, click to expand. –

HTH.

#205655
Jul 1, 2011 at 2:19am

This worked out very well, thanks!

MH

#205654
Jul 1, 2011 at 2:19am

This worked out very well, thanks!

MH

#205656

You must be logged in to reply to this topic.