import math


def get_categorized_manual_throttle(throttle):
    """Return the value of the category in which the input throttle belongs to.

    Args:
        input (float): Float value ranging from -1.0 to 1.0 taken as input from joystick.

    Returns:
        float: Value of the category the input throttle belonged to.
    """
    if abs(throttle) >= 0.8:
        throttle = math.copysign(0.8, throttle)
    elif abs(throttle) >= 0.5:
        throttle = math.copysign(0.5, throttle)
    elif abs(throttle) > 0.0:
        throttle = math.copysign(0.3, throttle)
    return throttle