"""Collector packets preserve whole sweeps, source windows and pair identity.""" import struct import unittest import numpy as np from python_app.hardware_full.rph_radar.protocol import RphRadarStreamParser def packet(*, source_id=1, cycle_id=1, start=100, end=200, combo=(1, 2), dirty=0, points=None): if points is None: points = [(0xA, 1, 10, -1), (0xA8, 1, 100, 5)] payload = b"".join(struct.pack("