Lines Matching refs:fix
188 GpsLocation fix;
232 r->fix.size = sizeof(r->fix);
242 if (cb != NULL && r->fix.flags != 0) {
243 D("%s: sending latest fix to new callback", __FUNCTION__);
244 r->callback( &r->fix );
245 r->fix.flags = 0;
283 r->fix.timestamp = (long long)fix_time * 1000;
353 r->fix.flags |= GPS_LOCATION_HAS_LAT_LONG;
354 r->fix.latitude = lat;
355 r->fix.longitude = lon;
371 r->fix.flags |= GPS_LOCATION_HAS_ALTITUDE;
372 r->fix.altitude = str2float(tok.p, tok.end);
387 r->fix.flags |= GPS_LOCATION_HAS_BEARING;
388 r->fix.bearing = str2float(tok.p, tok.end);
403 r->fix.flags |= GPS_LOCATION_HAS_SPEED;
404 r->fix.speed = str2float(tok.p, tok.end);
413 r->fix.flags |= GPS_LOCATION_HAS_ACCURACY;
414 r->fix.accuracy = 20;
423 * a new GPS fix...
455 // GPS fix
505 if (r->fix.flags != 0) {
512 p += snprintf( p, end-p, "sending fix" );
513 if (r->fix.flags & GPS_LOCATION_HAS_LAT_LONG) {
514 p += snprintf(p, end-p, " lat=%g lon=%g", r->fix.latitude, r->fix.longitude);
516 if (r->fix.flags & GPS_LOCATION_HAS_ALTITUDE) {
517 p += snprintf(p, end-p, " altitude=%g", r->fix.altitude);
519 if (r->fix.flags & GPS_LOCATION_HAS_SPEED) {
520 p += snprintf(p, end-p, " speed=%g", r->fix.speed);
522 if (r->fix.flags & GPS_LOCATION_HAS_BEARING) {
523 p += snprintf(p, end-p, " bearing=%g", r->fix.bearing);
525 if (r->fix.flags & GPS_LOCATION_HAS_ACCURACY) {
526 p += snprintf(p,end-p, " accuracy=%g", r->fix.accuracy);
528 gmtime_r( (time_t*) &r->fix.timestamp, &utc );
533 r->callback( &r->fix );
534 r->fix.flags = 0;