From f3d40ece278015f29db966cb9d21c3310ac6a087 Mon Sep 17 00:00:00 2001 From: airmamaf Date: Thu, 25 Sep 2014 08:56:16 +0200 Subject: [PATCH] Update gps.c Compute GPS quality signal --- src/main/io/gps.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/io/gps.c b/src/main/io/gps.c index e8e63e500..371eadaf1 100644 --- a/src/main/io/gps.c +++ b/src/main/io/gps.c @@ -59,6 +59,7 @@ extern int16_t debug[4]; int32_t GPS_coord[2]; // LAT/LON uint8_t GPS_numSat; +uint16_t GPS_hdop = 9999; // Compute GPS quality signal uint8_t GPS_update = 0; // it's a binary toggle to distinct a GPS position update uint16_t GPS_altitude; // altitude in 0.1m @@ -752,7 +753,7 @@ static bool UBLOX_parse_gps(void) if (!next_fix) DISABLE_STATE(GPS_FIX); GPS_numSat = _buffer.solution.satellites; - // GPS_hdop = _buffer.solution.position_DOP; + GPS_hdop = _buffer.solution.position_DOP; break; case MSG_VELNED: // speed_3d = _buffer.velned.speed_3d; // cm/s