def angle_diff(angle1, angle2):
    """show the difference between two angles in degrees"""
    ret = angle1 - angle2
    if ret > 180:
        ret -= 360
    if ret < -180:
        ret += 360
    return ret
