Changeset 206 in flair-src for trunk/lib/FlairSensorActuator
- Timestamp:
- Jan 9, 2018, 11:43:37 AM (7 years ago)
- Location:
- trunk/lib/FlairSensorActuator/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairSensorActuator/src/NmeaGps.cpp
r194 r206 176 176 177 177 int result; 178 //Printf("%s\n",frame); 178 Printf("%s\n",frame); 179 Printf("%x %x\n",&parser,parser.buffer); 179 180 result = nmea_parse(&parser, frame, frame_size, &info); 181 Printf("%x %x\n",&parser,parser.buffer); 180 182 if (result != 1) { 181 183 Warn("unrecognized nmea sentence: %s\n",frame); 182 184 return; 183 185 } 184 186 Printf("3\n"); 187 Printf("%x %x\n",&parser,parser.buffer); 185 188 result = nmea_parse_GPGGA(frame, frame_size, &pack); 186 189 Printf("%x %x\n",&parser,parser.buffer); 187 190 if (result == 1) { 191 Printf("%x %x\n",&parser,parser.buffer); 188 192 nmea_info2pos(&info, &pos); 189 193 Printf("%x %x\n",&parser,parser.buffer); 190 194 // 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); 191 195 //Printf("lat:%f long:%f\n",pos.lat,pos.lon); -
trunk/lib/FlairSensorActuator/src/SimuCamera.cpp
r158 r206 97 97 // échange de pointeur sur 98 98 // double buffering 99 99 100 output->ReleaseMutex(); 100 101 memcpy(&time,shmemReadBuf+buf_size-sizeof(Time),sizeof(Time)); -
trunk/lib/FlairSensorActuator/src/SimuGps.cpp
r170 r206 48 48 fixQuality = new SpinBox(GetGroupBox()->NewRow(), "fix quality", 1, 8, 1, 1); 49 49 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 51 52 shmem = new SharedMem((Thread *)this, ShMemName(modelId, deviceId), 52 53 sizeof(gps_states_t)); … … 152 153 153 154 nmea_gen_GPGGA(buf,sizeof(buf),&gga); 155 Printf("1\n"); 154 156 parseFrame(buf,sizeof(buf)); 155 157 … … 157 159 vtg.spk=sqrtf(state.ve*state.ve+state.vn*state.vn)*3600./1000.; 158 160 nmea_gen_GPVTG(buf,sizeof(buf),&vtg); 161 Printf("2\n"); 159 162 parseFrame(buf,sizeof(buf)); 160 163 } -
trunk/lib/FlairSensorActuator/src/SimuGps.h
r170 r206 99 99 core::SharedMem *shmem; 100 100 gui::SpinBox *dataRate,*fixQuality,*numberOfSatellites; 101 gui::DoubleSpinBox *latitudeRef,*longitudeRef,*altitudeRef ;101 gui::DoubleSpinBox *latitudeRef,*longitudeRef,*altitudeRef,*magneticDeclination; 102 102 }; 103 103 } // end namespace sensor
Note:
See TracChangeset
for help on using the changeset viewer.