compare_angles changed to millirads