1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-26 17:55:28 +03:00

GPS: Report proper fix type to MSP_RAW_GPS

This commit is contained in:
Konstantin Sharlaimov (DigitalEntity) 2016-05-05 20:06:04 +10:00
parent bee5bfa9ce
commit a2c791a811
2 changed files with 2 additions and 2 deletions

View file

@ -104,7 +104,7 @@ typedef struct gpsSolutionData_s {
unsigned validEPE : 1; // EPH/EPV values are valid - actual accuracy
} flags;
uint8_t fixType;
gpsFixType_e fixType;
uint8_t numSat;
gpsLocation_t llh;

View file

@ -842,7 +842,7 @@ static bool processOutCommand(uint8_t cmdMSP)
#ifdef GPS
case MSP_RAW_GPS:
headSerialReply(18);
serialize8(STATE(GPS_FIX));
serialize8(gpsSol.fixType);
serialize8(gpsSol.numSat);
serialize32(gpsSol.llh.lat);
serialize32(gpsSol.llh.lon);