J
jyang
Hi
just wondering why there is -1 in calculating the U and V components?
Thanks
Jy
just wondering why there is -1 in calculating the U and V components?
Thanks
Jy
You need to use modulo 360 arithmetic. Modulo 360 is simply the remainder after dividing the sum by 360. E.g.
(10 + 10 + 10 + 350) / 4 = 95 (incorrect)
((10 + 10 + 10 + 350) modulo 360) / 4 = 5 (correct)
Also - don't allow 360 as a valid reading. It aliases with 0 and is therefore ambiguous.
by Seth Price