For some reason my GPS is giving me NaN's instead of headings..
/* Process any data from the gps and call the hook function */
if (gps_data != NULL) {
/* Process any data from the gps and call the hook function */
if (gps_data != NULL) {
+ gdouble track = gps_data->fix.track;
gint result = gps_read(gps_data);
gint result = gps_read(gps_data);
+ if (isnan(gps_data->fix.track))
+ gps_data->fix.track = track;
g_debug("GritsPluginGps: process_gps - gps_read returned %d, "
"position %f, %f.", result,
gps_data->fix.latitude, gps_data->fix.longitude);
g_debug("GritsPluginGps: process_gps - gps_read returned %d, "
"position %f, %f.", result,
gps_data->fix.latitude, gps_data->fix.longitude);