Merge pull request #93 from airmamaf/patch-2

Add Horizontal Dilution Of Precision to telemetry (1/2)
This commit is contained in:
Dominic Clifton 2014-09-26 21:47:38 +01:00
commit 854e4ffa01
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