def calcVelRPM(rpm, pdiv):
    """
    Calculates the rpm that fits, an translates it to engine values.
    Returns [velocity value, rpm value].
    """
    vel = round((rpm * 2**pdiv *200 * 2**8 *2048 * 32)/(16*10**6 * 60))
    rpm = (16*10**6 * vel * 60)/(2**pdiv * 200* 2**8 *2048 * 32)
    return [vel, round(rpm, 5)]