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


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

maj

Location:
trunk/lib/FlairSensorActuator
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairSensorActuator/CMakeLists.txt

    r211 r216  
    2525        ${CMAKE_CURRENT_SOURCE_DIR}/../FlairVisionFilter/src
    2626        ${CMAKE_SYSROOT}/usr/include/opencv1
     27    ${CMAKE_SYSROOT}/usr/include/opencv
    2728        ${CMAKE_SYSROOT}/usr/include/vrpn
    2829)
  • 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.