Exemplo n.º 1
0
def test_glonass_parse_from_file():
    def update(pos, info):
        pass

    gps = GPSService()
    gps.gpsposition.connect(update)
    wgs84CRS = QgsCoordinateReferenceSystem(4326)
    gps.crs = wgs84CRS
    with open(data("glonass_gps_log.nmea"), "r") as f:
        for line in f:
            line = line.strip("\n")
            gps.parse_data(line)
Exemplo n.º 2
0
def test_glonass_parse_from_file():
    def update(pos, info):
        pass

    gps = GPSService()
    gps.gpsposition.connect(update)
    wgs84CRS = QgsCoordinateReferenceSystem(4326)
    gps.crs = wgs84CRS
    with open(data("glonass_gps_log.nmea"), "r") as f:
        for line in f:
            line = line.strip("\n")
            gps.parse_data(line)
Exemplo n.º 3
0
def dont_crash_with_strange_gps_string():
    # WAT the heck is the PQXFI message?
    data = "$PQXFI,054109.0,2812.884789,S,15202.046024,E,462.1,2.92,4.14,0.82*73"
    gps = GPSService()
    gps.parse_data(data)
Exemplo n.º 4
0
def dont_crash_with_strange_gps_string():
    # WAT the heck is the PQXFI message?
    data = "$PQXFI,054109.0,2812.884789,S,15202.046024,E,462.1,2.92,4.14,0.82*73"
    gps = GPSService()
    gps.parse_data(data)