Ignore:
Timestamp:
02/15/18 16:44:23 (4 years ago)
Author:
Sanahuja Guillaume
Message:

maj

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairSensorActuator/src/NmeaGps.cpp

    r214 r216  
    174174
    175175void NmeaGps::parseFrame(const char *frame, int frame_size) {
    176 
     176  //avoid unrecognized nmea sentence (when no satelites
     177  if(strncmp(frame,"$GNGGA,,",8)==0) return;
     178  if(strncmp(frame,"$GNVTG,,",8)==0) return;
     179  if(strstr(frame,",,,,,")!=NULL) return;
     180 
    177181  int result;
    178182  result = nmea_parse(&parser, frame, frame_size, &info);
    179  
    180183  if (result != 1) {
    181184    Warn("unrecognized nmea sentence: %s\n",frame);
    182185    return;
    183186  }
    184 
     187 
    185188  result = nmea_parse_GPGGA(frame, frame_size, &pack);
    186189
Note: See TracChangeset for help on using the changeset viewer.