Changeset 214 in flair-src for trunk/lib/FlairSensorActuator/src/NmeaGps.cpp
- Timestamp:
- 02/07/18 17:49:27 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairSensorActuator/src/NmeaGps.cpp
r206 r214 176 176 177 177 int result; 178 Printf("%s\n",frame);179 Printf("%x %x\n",&parser,parser.buffer);180 178 result = nmea_parse(&parser, frame, frame_size, &info); 181 Printf("%x %x\n",&parser,parser.buffer);179 182 180 if (result != 1) { 183 181 Warn("unrecognized nmea sentence: %s\n",frame); 184 182 return; 185 183 } 186 Printf("3\n"); 187 Printf("%x %x\n",&parser,parser.buffer); 184 188 185 result = nmea_parse_GPGGA(frame, frame_size, &pack); 189 Printf("%x %x\n",&parser,parser.buffer); 186 190 187 if (result == 1) { 191 Printf("%x %x\n",&parser,parser.buffer);192 188 nmea_info2pos(&info, &pos); 193 Printf("%x %x\n",&parser,parser.buffer);194 189 // 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); 195 190 //Printf("lat:%f long:%f\n",pos.lat,pos.lon);
Note:
See TracChangeset
for help on using the changeset viewer.