static BOOL CondorParseNMEA(PDeviceDescriptor_t d, const TCHAR *String, NMEA_INFO *GPS_INFO) { (void)d; if(_tcsncmp(TEXT("$LXWP0"), String, 6)==0) { return cLXWP0(d, &String[7], GPS_INFO); } if(_tcsncmp(TEXT("$LXWP1"), String, 6)==0) { return cLXWP1(d, &String[7], GPS_INFO); } if(_tcsncmp(TEXT("$LXWP2"), String, 6)==0) { return cLXWP2(d, &String[7], GPS_INFO); } return FALSE; }
bool CondorDevice::ParseNMEA(const char *String, NMEAInfo &info) { if (!VerifyNMEAChecksum(String)) return false; NMEAInputLine line(String); char type[16]; line.Read(type, 16); if (StringIsEqual(type, "$LXWP0")) return cLXWP0(line, info); if (StringIsEqual(type, "$LXWP1")) return cLXWP1(line, info); if (StringIsEqual(type, "$LXWP2")) return cLXWP2(line, info); return false; }
bool CondorDevice::ParseNMEA(const char *String, NMEA_INFO *GPS_INFO, bool enable_baro) { GPS_INFO->gps.Simulator = true; NMEAInputLine line(String); char type[16]; line.read(type, 16); if (strcmp(type, "$LXWP0") == 0) return cLXWP0(line, GPS_INFO, enable_baro); if (strcmp(type, "$LXWP1") == 0) return cLXWP1(line, GPS_INFO); if (strcmp(type, "$LXWP2") == 0) return cLXWP2(line, GPS_INFO); return false; }
static BOOL CondorParseNMEA(PDeviceDescriptor_t d, TCHAR *String, NMEA_INFO *pGPS){ (void)d; if (!NMEAParser::NMEAChecksum(String) || (pGPS == NULL)){ return FALSE; } if(_tcsncmp(TEXT("$LXWP0"), String, 6)==0) { return cLXWP0(d, &String[7], pGPS); } if(_tcsncmp(TEXT("$LXWP1"), String, 6)==0) { return cLXWP1(d, &String[7], pGPS); } if(_tcsncmp(TEXT("$LXWP2"), String, 6)==0) { return cLXWP2(d, &String[7], pGPS); } return FALSE; }