HIDE NAV

RoboCode: Angle Conversion

The following methods can be used in RoboCode to switch between trigonometric angles in radians and RoboCode angles in degrees.


...

    public static double roboDegreestoMathRadians(double roboDegrees){
        return (Math.toRadians(90.0 - roboDegrees));
    }

    public static double mathRadianstoRoboDegrees(double mathRadians){
        return (90 - Math.toDegrees(mathRadians));
    }

...