But the math result of 170 and -170 would be zero, since -170 + 170 = 0. If zero is north, and 170 and -170 are just east and west of south, the average of the two readings would be north, instead of south. I think in the end, one just has to figure out what the end result of the data has to be and tailor the system to fit. Remember, this sort of thing is why creative problem solvers with a good grip on the underlying concepts will have jobs for a good long time to come. So be grateful these problems exist! Mike H. > I don't understand that. Your encoding uses -180 ... + 180 for the full > circle, so 170 and -170 are pretty close, just 20 degrees apart, so > there is only one average (south, if 0 is north). > > > > Wouter van Ooijen _______________________________________________ http://www.piclist.com View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist