Changeset 206 in flair-src for trunk/lib/FlairSensorActuator/src/NmeaGps.cpp
- Timestamp:
- Jan 9, 2018, 11:43:37 AM (7 years ago)
- File:
-
- 1 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);
Note:
See TracChangeset
for help on using the changeset viewer.