I think this is actually really important, because if competitions are ever created, the right rotation is necessary, so let me expand on this a bit.
It's pretty obvious that theres a group of number that it selects from to print the rotation on screen (360 540 720) because we aren't seeing numbers like 371 degree rotation. As of now, it just prints off the closest number off the rotation list. This causes some issues when people do things like hips and stuff like that, where its pretty obviously a 7, because you went forward to forward, but it prints out 540 because it was only a 620 degree rotation. The way to fix this is actually pretty simple, so heres some really simple pseudo code that would fix this problem right up.
if StartDirection == LandDirection:
(whatever code choses closest rotation) = rotation
if rotation % 360 == 0:
print rotation
else:
next closest rotation = rotation
print rotation
if StartDirection != LandDirection
(closest rotation code) = rotation
if rotation % 360 == 180:
print rotation
else:
next closest rotation = rotation
print rotation