예제 #1
0
파일: Flytec.cpp 프로젝트: galippi/xcsoar
bool
FlytecDevice::ParseNMEA(const char *_line, NMEA_INFO *info, bool enable_baro)
{
  NMEAInputLine line(_line);
  char type[16];
  line.read(type, 16);

  if (strcmp(type, "$BRSF") == 0)
    return FlytecParseBRSF(line, *info, enable_baro);
  else if (strcmp(type, "$VMVABD") == 0)
    return FlytecParseVMVABD(line, *info, enable_baro);
  else
    return false;
}
예제 #2
0
파일: Flytec.cpp 프로젝트: mobotics/XCSoar
bool
FlytecDevice::ParseNMEA(const char *_line, NMEAInfo &info)
{
  NMEAInputLine line(_line);
  char type[16];
  line.read(type, 16);

  if (StringIsEqual(type, "$BRSF"))
    return FlytecParseBRSF(line, info);
  else if (StringIsEqual(type, "$VMVABD"))
    return FlytecParseVMVABD(line, info);
  else if (StringIsEqual(type, "$FLYSEN"))
    return FlytecParseFLYSEN(line, info);
  else
    return false;
}