mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
Merge pull request #11168 from TonyBlit/fix_gps_coord
fix for gps coordinates not shown on OSD
This commit is contained in:
commit
7bd62f82d3
1 changed files with 1 additions and 5 deletions
|
@ -1487,11 +1487,7 @@ static bool UBLOX_parse_gps(void)
|
||||||
gpsSol.llh.lon = _buffer.pvt.lon;
|
gpsSol.llh.lon = _buffer.pvt.lon;
|
||||||
gpsSol.llh.lat = _buffer.pvt.lat;
|
gpsSol.llh.lat = _buffer.pvt.lat;
|
||||||
gpsSol.llh.altCm = _buffer.pvt.hMSL / 10; //alt in cm
|
gpsSol.llh.altCm = _buffer.pvt.hMSL / 10; //alt in cm
|
||||||
if (next_fix) {
|
gpsSetFixState(next_fix);
|
||||||
ENABLE_STATE(GPS_FIX);
|
|
||||||
} else {
|
|
||||||
DISABLE_STATE(GPS_FIX);
|
|
||||||
}
|
|
||||||
_new_position = true;
|
_new_position = true;
|
||||||
gpsSol.numSat = _buffer.pvt.numSV;
|
gpsSol.numSat = _buffer.pvt.numSV;
|
||||||
gpsSol.hdop = _buffer.pvt.pDOP;
|
gpsSol.hdop = _buffer.pvt.pDOP;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue