I want to calculate rate of change of track acorss ground (in degrees). You could call it rate of turn.
OK, it's simple....all you do is subtract the incoming reading from the privious one. Well not quite.......all is dandy until you sweep over the 360 degrees line. If you were turning clockwise you could get 359 - 1 = 358, where what you really want is '2'.
Any ideas how you do this would be appriciated.
Many thanks, Ben
OK, it's simple....all you do is subtract the incoming reading from the privious one. Well not quite.......all is dandy until you sweep over the 360 degrees line. If you were turning clockwise you could get 359 - 1 = 358, where what you really want is '2'.
Any ideas how you do this would be appriciated.
Many thanks, Ben