track_drop_cnt=0;
integerize_data(_vel_offsetx, _vel_offsety, _pos, _gps);
track_add(_pos.time, newly_fixed);
+ _gps.lheading=_gps.heading;
refresh_mark();
}
}
switch (_units) {
case UNITS_MI:
case UNITS_NM:
- buffer = g_strdup_printf("%.1f ft",
- _pos.altitude * 3.2808399f);
+ buffer = g_strdup_printf("%.1f ft", _pos.altitude * 3.2808399f);
break;
default:
buffer = g_strdup_printf("%.1f m", _pos.altitude);
g_free(buffer);
/* heading */
- buffer = g_strdup_printf("%0.0f°", _gps.heading);
+ buffer = g_strdup_printf("%0.0f° (%0.0f)", _gps.heading, fabs(_gps.heading-_gps.lheading));
gtk_label_set_label(GTK_LABEL(_sdi_hea), buffer);
g_free(buffer);