gtk_label_set_label(GTK_LABEL(_text_lon), " --- ");
gtk_label_set_label(GTK_LABEL(_text_speed), " --- ");
gtk_label_set_label(GTK_LABEL(_text_alt), " --- ");
+ gtk_label_set_label(GTK_LABEL(_text_dop), "0/0/0");
} else {
gfloat speed = _gps.speed * UNITS_CONVERT[_units];
}
gtk_label_set_label(GTK_LABEL(_text_alt), buffer);
g_free(buffer);
+
+ /* DOP */
+ buffer = g_strdup_printf("%.1f/%.1f/%.1f", _gps.hdop, _gps.vdop, _gps.pdop);
+ gtk_label_set_label(GTK_LABEL(_text_dop), buffer);
+ g_free(buffer);
}
/* refresh sat panel */
xoffset = 0;
yoffset = (widget->allocation.height - widget->allocation.width) / 2;
}
-pango_font_description_set_size(_heading_panel_fontdesc,
- 12 * PANGO_SCALE);
-pango_layout_set_font_description(_heading_panel_layout,
- _heading_panel_fontdesc);
+pango_font_description_set_size(_heading_panel_fontdesc, 12 * PANGO_SCALE);
+pango_layout_set_font_description(_heading_panel_layout, _heading_panel_fontdesc);
pango_layout_set_alignment(_heading_panel_layout, PANGO_ALIGN_CENTER);
text = g_strdup_printf("%3.0f°", _gps.heading);
gtk_widget_set_size_request(GTK_WIDGET(_text_alt), -1, 30);
gtk_box_pack_start(GTK_BOX(vbox), _text_alt, FALSE, TRUE, 0);
+ _text_dop = gtk_label_new(" --- ");
+ gtk_widget_set_size_request(GTK_WIDGET(_text_dop), -1, 30);
+ gtk_box_pack_start(GTK_BOX(vbox), _text_dop, FALSE, TRUE, 0);
+
label = gtk_label_new(" ");
gtk_widget_set_size_request(GTK_WIDGET(label), -1, 10);
gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, TRUE, 0);