>without odd things happening around the transition from >0 to 359 - I'm sure there is a simple trick to it but >can't figure out what it is.... I would have thought you keep averaging values out to about 400 degrees (or whatever your likely max is around that heading), then when finally displaying them do the mod 360 function. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist