Commit 29be5676 authored by Lauros Pajunen's avatar Lauros Pajunen
Browse files

Enable all rtpdump tests

parent c41840bd
Loading
Loading
Loading
Loading
Loading
+3 −14
Original line number Diff line number Diff line
@@ -193,15 +193,10 @@ def generatePiData(startTs: int, endTs: int) -> dict:
        y=random.randint(-32788, 32767) / 100.0,
        z=random.randint(-32788, 32767) / 100.0,
    )
    #somePositionCompact = lambda: POSITION(
    #    x=random.randint(-1024, 1023) / 100.0,
    #    y=random.randint(-1024, 1023) / 100.0,
    #    z=random.randint(-512, 511) / 100.0,
    #)
    somePositionCompact = lambda: POSITION(
        x=1.0,
        y=1.0,
        z=-1.0,
        x=random.randint(-1024, 1023) / 100.0,
        y=random.randint(-1024, 1023) / 100.0,
        z=random.randint(-512, 511) / 100.0,
    )
    someDesc = lambda: AUDIO_DESCRIPTION(
        isSpeech=bool(random.getrandbits(1)),
@@ -295,11 +290,6 @@ def generatePiData(startTs: int, endTs: int) -> dict:

    for ts in range(startTs, endTs, 320):
        pidata = dict()

        pidata["ISM_NUM"] = someNumISM()
        pidata["ISM_POSITION_COMPACT"] = someISMPositionsCompact(pidata["ISM_NUM"].num)
        #pidata["R_ISM_POSITION_COMPACT"] = somePositionCompact()
        '''
        pidata["SCENE_ORIENTATION"] = someOrientation()
        pidata["DEVICE_ORIENTATION_COMPENSATED"] = someOrientation()
        pidata["DEVICE_ORIENTATION_UNCOMPENSATED"] = someOrientation()
@@ -327,7 +317,6 @@ def generatePiData(startTs: int, endTs: int) -> dict:
        pidata["R_ISM_POSITION"] = somePosition()
        pidata["R_ISM_POSITION_COMPACT"] = somePositionCompact()
        pidata["R_ISM_DIRECTION"] = someReverseISMDirection()
        '''
        data[str(ts)] = pidata
    return data