Home | History | Annotate | Download | only in gps

Lines Matching refs:fix

186     GpsLocation  fix;
230 r->fix.size = sizeof(r->fix);
240 if (cb != NULL && r->fix.flags != 0) {
241 D("%s: sending latest fix to new callback", __FUNCTION__);
242 r->callback( &r->fix );
243 r->fix.flags = 0;
281 r->fix.timestamp = (long long)fix_time * 1000;
351 r->fix.flags |= GPS_LOCATION_HAS_LAT_LONG;
352 r->fix.latitude = lat;
353 r->fix.longitude = lon;
369 r->fix.flags |= GPS_LOCATION_HAS_ALTITUDE;
370 r->fix.altitude = str2float(tok.p, tok.end);
385 r->fix.flags |= GPS_LOCATION_HAS_BEARING;
386 r->fix.bearing = str2float(tok.p, tok.end);
401 r->fix.flags |= GPS_LOCATION_HAS_SPEED;
402 r->fix.speed = str2float(tok.p, tok.end);
411 r->fix.flags |= GPS_LOCATION_HAS_ACCURACY;
412 r->fix.accuracy = 20;
421 * a new GPS fix...
453 // GPS fix
503 if (r->fix.flags != 0) {
510 p += snprintf( p, end-p, "sending fix" );
511 if (r->fix.flags & GPS_LOCATION_HAS_LAT_LONG) {
512 p += snprintf(p, end-p, " lat=%g lon=%g", r->fix.latitude, r->fix.longitude);
514 if (r->fix.flags & GPS_LOCATION_HAS_ALTITUDE) {
515 p += snprintf(p, end-p, " altitude=%g", r->fix.altitude);
517 if (r->fix.flags & GPS_LOCATION_HAS_SPEED) {
518 p += snprintf(p, end-p, " speed=%g", r->fix.speed);
520 if (r->fix.flags & GPS_LOCATION_HAS_BEARING) {
521 p += snprintf(p, end-p, " bearing=%g", r->fix.bearing);
523 if (r->fix.flags & GPS_LOCATION_HAS_ACCURACY) {
524 p += snprintf(p,end-p, " accuracy=%g", r->fix.accuracy);
526 gmtime_r( (time_t*) &r->fix.timestamp, &utc );
531 r->callback( &r->fix );
532 r->fix.flags = 0;