#!/usr/bin/env python3 # type: ignore # pylint: skip-file from selfdrive.locationd.test import ublox import struct baudrate = 460800 rate = 100 # send new data every 100ms def configure_ublox(dev): # configure ports and solution parameters and rate dev.configure_port(port=ublox.PORT_USB, inMask=1, outMask=1) # enable only UBX on USB dev.configure_port(port=0, inMask=0, outMask=0) # disable DDC payload = struct.pack('