def angle_sector(angle: float) -> int:
    """The bearing angles are mapped to one of  32 sectors, each of size 11.5°
    returns the sector the angle belongs to.

    Args:
        angle:
            the value is expected in degrees
    Returns:
        the sector to which the angle belongs to. Value in range [0,31]
    """

    if angle < 0:
        angle = angle + 360
    return int(angle / (360 / 32)) % 32