While tracking works on doing straights, the angles (seem to be) messed up. For example, on the old season code, when it reports a heading of 360 degrees, the new code will report a heading of -144 degrees.
Though, it is important to note that the issue likely does not lie in the tracking algorithm itself, but someplace else, as taking the tracking function from the new code and putting it into the previous season's code seems to work perfectly.
While tracking works on doing straights, the angles (seem to be) messed up. For example, on the old season code, when it reports a heading of 360 degrees, the new code will report a heading of -144 degrees.
Though, it is important to note that the issue likely does not lie in the tracking algorithm itself, but someplace else, as taking the tracking function from the new code and putting it into the previous season's code seems to work perfectly.