1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 08:15:30 +03:00

Merge pull request #11168 from TonyBlit/fix_gps_coord

fix for gps coordinates not shown on OSD
This commit is contained in:
ctzsnooze 2021-12-28 14:12:13 +11:00 committed by GitHub
commit 7bd62f82d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1487,11 +1487,7 @@ static bool UBLOX_parse_gps(void)
gpsSol.llh.lon = _buffer.pvt.lon;
gpsSol.llh.lat = _buffer.pvt.lat;
gpsSol.llh.altCm = _buffer.pvt.hMSL / 10; //alt in cm
if (next_fix) {
ENABLE_STATE(GPS_FIX);
} else {
DISABLE_STATE(GPS_FIX);
}
gpsSetFixState(next_fix);
_new_position = true;
gpsSol.numSat = _buffer.pvt.numSV;
gpsSol.hdop = _buffer.pvt.pDOP;