Would you please explain a bit more? How we could get the COG value? Please Advice.
Best regards.
Yes, "COG" = "Course Over Ground" which is often called "Bearing", though that is not a very good word for it.
Also that code from 2007 is not very efficient, since every If statement is executed although only one can evaluate to "True". It would probably execute faster if made a bit longer with some "Else"s, so only the statements down to the true one were executed.
Or even better, do some arithmetic to get an integer that represents the required sector and then index the descriptive string from a string array. (That would be the classic way to do it, so I leave it as an exercise for the reader!)
Mike.