Lines Matching refs:fix
41 if (!r->fix.flags) { in reader_call_callback()
47 r->fix.timestamp = (long long)secs * 1000; in reader_call_callback()
51 if (r->fix.flags & GPS_LOCATION_HAS_LAT_LONG) { in reader_call_callback()
52 D(" - latitude = %g", r->fix.latitude); in reader_call_callback()
53 D(" - longitude = %g", r->fix.longitude); in reader_call_callback()
55 if (r->fix.flags & GPS_LOCATION_HAS_ALTITUDE) in reader_call_callback()
56 D(" - altitude = %g", r->fix.altitude); in reader_call_callback()
57 if (r->fix.flags & GPS_LOCATION_HAS_SPEED) D(" - speed = %g", r->fix.speed); in reader_call_callback()
58 if (r->fix.flags & GPS_LOCATION_HAS_BEARING) in reader_call_callback()
59 D(" - bearing = %g", r->fix.bearing); in reader_call_callback()
60 if (r->fix.flags & GPS_LOCATION_HAS_ACCURACY) in reader_call_callback()
61 D(" - accuracy = %g", r->fix.accuracy); in reader_call_callback()
62 long long utc_secs = r->fix.timestamp / 1000; in reader_call_callback()
69 r->callback(&r->fix); in reader_call_callback()
76 int num_read = sscanf(r->buffer, "%lf,%lf,%lf,%f,%f,%f", &r->fix.longitude, in reader_parse_message()
77 &r->fix.latitude, &r->fix.altitude, &r->fix.bearing, in reader_parse_message()
78 &r->fix.speed, &r->fix.accuracy); in reader_parse_message()
83 r->fix.flags = DEFAULT_GPS_LOCATION_FLAG; in reader_parse_message()
118 reader.fix.size = sizeof(reader.fix); in gps_state_thread()