def METHOD_NAME(RV, speed, degrees):
    if degrees < 0:
        speed = speed * -1
    distance = abs(degrees)
    lastOrientation = RV.readFloatVector(1)[2]
    setSpeedOmnidrivePercent(0, 0, speed)
    while distance > 0:
        orientation = RV.readFloatVector(1)[2]
        traveledDegrees = abs(orientation - lastOrientation)
        if ((speed > 0 and lastOrientation > orientation) or (speed < 0 and lastOrientation < orientation)) and traveledDegrees > 300:
            traveledDegrees = 360 - traveledDegrees
        distance -= traveledDegrees
        lastOrientation = orientation
        time.sleep(0.05)
    setSpeedOmnidrivePercent(0, 0, 0)