Update gps.c

Compute GPS quality signal
This commit is contained in:
airmamaf 2014-09-25 08:56:16 +02:00
parent 6b6df68fa7
commit f3d40ece27
1 changed files with 2 additions and 1 deletions

View File

@ -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