Changeset 216 in flair-src for trunk/lib/FlairSensorActuator/src


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

maj

Location:
trunk/lib/FlairSensorActuator/src
Files:
3 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
  • trunk/lib/FlairSensorActuator/src/PressureSensor.cpp

    r215 r216  
    7979
    8080  plot_tab = new Tab(tab, "Mesures");
    81   plot = new DataPlot1D(plot_tab->NewRow(), ObjectName(), 0, 2);
     81  plot = new DataPlot1D(plot_tab->NewRow(), ObjectName(), 101000, 101500);
    8282  plot->AddCurve(output->Element(0));
    8383}
  • trunk/lib/FlairSensorActuator/src/PressureSensor.h

    r215 r216  
    109109  * \brief Value
    110110  *
    111   * \return output value
     111  * \return output value in pascal
    112112  */
    113113  float Value(void) const;
Note: See TracChangeset for help on using the changeset viewer.