public static String degreesUnitIndexToString(int index) {
       switch (index) {
            case 0:
                return "true";
            case 1:
                return "magnetic";
            case 2:
                return "relative";
            default:
                return "true";
        } 
    }