Add GPS speed and error data to telemetry and aoview
[fw/altos] / aoview / aoview_state.c
index 356828c65a3b0bc1e58e063974e11bbe0e6a10a8..52f581ff63cdb3d8bf161929065d0964953d3213 100644 (file)
@@ -151,6 +151,13 @@ aoview_state_notify(struct aostate *state)
                                     state->gps_time.hour,
                                     state->gps_time.minute,
                                     state->gps_time.second);
+               aoview_table_add_row("GPS ground speed", "%fm/s %d°",
+                                    state->ground_speed,
+                                    state->course);
+               aoview_table_add_row("GPS climb rate", "%fm/s",
+                                    state->climb_rate);
+               aoview_table_add_row("GPS precision", "%f(hdop) %dm(h) %dm(v)\n",
+                                    state->hdop, state->h_error, state->v_error);
                aoview_great_circle(pad_lat, pad_lon, state->lat, state->lon,
                                    &dist, &bearing);
                aoview_table_add_row("Distance from pad", "%gm", dist * 1000);