def mixer(yaw, throttle):
    """
    Map x and y joystick axes to a pair of motor speeds
    """
    left = throttle + yaw
    right = throttle - yaw
    scale = 1.0 / max(1, abs(left), abs(right))
    return int(left * scale), int(right * scale)