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


Ignore:
Timestamp:
Jan 9, 2018, 11:43:37 AM (4 years ago)
Author:
Sanahuja Guillaume
Message:

m

Location:
trunk/lib/FlairSensorActuator/src
Files:
4 edited

Legend:

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

    r194 r206  
    176176
    177177  int result;
    178 //Printf("%s\n",frame);
     178Printf("%s\n",frame);
     179Printf("%x %x\n",&parser,parser.buffer);
    179180  result = nmea_parse(&parser, frame, frame_size, &info);
     181  Printf("%x %x\n",&parser,parser.buffer);
    180182  if (result != 1) {
    181183    Warn("unrecognized nmea sentence: %s\n",frame);
    182184    return;
    183185  }
    184 
     186Printf("3\n");
     187Printf("%x %x\n",&parser,parser.buffer);
    185188  result = nmea_parse_GPGGA(frame, frame_size, &pack);
    186 
     189Printf("%x %x\n",&parser,parser.buffer);
    187190  if (result == 1) {
     191    Printf("%x %x\n",&parser,parser.buffer);
    188192    nmea_info2pos(&info, &pos);
    189      
     193     Printf("%x %x\n",&parser,parser.buffer);
    190194   //  Printf("nb:%i fix:%i lat:%f long:%f alt:%f vel:%f angle:%f\n",pack.satinuse,pack.sig,info.lat,info.lon,info.elv,info.speed*1000./3600.,info.direction);
    191195//Printf("lat:%f long:%f\n",pos.lat,pos.lon);
  • trunk/lib/FlairSensorActuator/src/SimuCamera.cpp

    r158 r206  
    9797                                                   // échange de pointeur sur
    9898                                                   // double buffering
     99                                           
    99100    output->ReleaseMutex();
    100101    memcpy(&time,shmemReadBuf+buf_size-sizeof(Time),sizeof(Time));
  • trunk/lib/FlairSensorActuator/src/SimuGps.cpp

    r170 r206  
    4848  fixQuality = new SpinBox(GetGroupBox()->NewRow(), "fix quality", 1, 8, 1, 1);
    4949  numberOfSatellites = new SpinBox(GetGroupBox()->NewRow(), "number of satellites", 1, 15, 1, 5);
    50 
     50  magneticDeclination= new DoubleSpinBox(GetGroupBox()->NewRow(), "magnetic declination", " deg", -180, 180, .1, 2,0);
     51 
    5152  shmem = new SharedMem((Thread *)this, ShMemName(modelId, deviceId),
    5253                        sizeof(gps_states_t));
     
    152153
    153154    nmea_gen_GPGGA(buf,sizeof(buf),&gga);
     155    Printf("1\n");
    154156    parseFrame(buf,sizeof(buf));
    155157
     
    157159    vtg.spk=sqrtf(state.ve*state.ve+state.vn*state.vn)*3600./1000.;
    158160    nmea_gen_GPVTG(buf,sizeof(buf),&vtg);
     161    Printf("2\n");
    159162    parseFrame(buf,sizeof(buf));
    160163  }
  • trunk/lib/FlairSensorActuator/src/SimuGps.h

    r170 r206  
    9999  core::SharedMem *shmem;
    100100  gui::SpinBox *dataRate,*fixQuality,*numberOfSatellites;
    101   gui::DoubleSpinBox *latitudeRef,*longitudeRef,*altitudeRef;
     101  gui::DoubleSpinBox *latitudeRef,*longitudeRef,*altitudeRef,*magneticDeclination;
    102102};
    103103} // end namespace sensor
Note: See TracChangeset for help on using the changeset viewer.