mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
OP-52 a small modification for GSV parsing (not working yet)
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1370 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
7859a130e8
commit
dd34ca1a8d
@ -235,6 +235,13 @@ uint8_t NMEAParser::nmeaProcess(cBuffer* rxBuffer)
|
|||||||
// report packet type
|
// report packet type
|
||||||
foundpacket = NMEA_GPRMC;
|
foundpacket = NMEA_GPRMC;
|
||||||
}
|
}
|
||||||
|
else if(!strncmp(NmeaPacket, "GPGSV", 5))
|
||||||
|
{
|
||||||
|
// Process packet of this type
|
||||||
|
nmeaProcessGPGSV(NmeaPacket);
|
||||||
|
// rerpot packet type
|
||||||
|
foundpacket = NMEA_GPGSV;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if(rxBuffer->datalength >= rxBuffer->size)
|
else if(rxBuffer->datalength >= rxBuffer->size)
|
||||||
{
|
{
|
||||||
@ -245,6 +252,15 @@ uint8_t NMEAParser::nmeaProcess(cBuffer* rxBuffer)
|
|||||||
return foundpacket;
|
return foundpacket;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Processes NMEA GSV sentences (satellites in view)
|
||||||
|
* \param[in] Buffer for parsed nmea GSV sentence
|
||||||
|
*/
|
||||||
|
void NMEAParser::nmeaProcessGPGSV(char *packet)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prosesses NMEA GPGGA sentences
|
* Prosesses NMEA GPGGA sentences
|
||||||
* \param[in] Buffer for parsed nmea GPGGA sentence
|
* \param[in] Buffer for parsed nmea GPGGA sentence
|
||||||
|
@ -68,6 +68,7 @@ public:
|
|||||||
void nmeaProcessGPRMC(char* packet);
|
void nmeaProcessGPRMC(char* packet);
|
||||||
void nmeaProcessGPVTG(char* packet);
|
void nmeaProcessGPVTG(char* packet);
|
||||||
void nmeaProcessGPGSA(char* packet);
|
void nmeaProcessGPGSA(char* packet);
|
||||||
|
void nmeaProcessGPGSV(char* packet);
|
||||||
GpsData_t GpsData;
|
GpsData_t GpsData;
|
||||||
cBuffer gpsRxBuffer;
|
cBuffer gpsRxBuffer;
|
||||||
char gpsRxData[512];
|
char gpsRxData[512];
|
||||||
|
Loading…
Reference in New Issue
Block a user