Changeset 118 in pacpussensors for trunk/Gps/gpsComponent.cpp
- Timestamp:
- Jan 13, 2016, 5:30:51 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Gps/gpsComponent.cpp
r99 r118 79 79 80 80 } 81 82 83 void GpsComponent::addOutputs() 84 { 85 addOutput<TimestampedGgaFrame, GpsComponent>("ggaOut"); 86 addOutput<TimestampedVtgFrame, GpsComponent>("vtgOut"); 87 addOutput<TimestampedVtgFrame, GpsComponent>("hdtOut"); 88 } 89 81 90 82 91 … … 221 230 { 222 231 ppsIndex_ = 0; 232 233 outGga_ = getTypedOutput<TimestampedGgaFrame, GpsComponent>("ggaOut"); 234 outVtg_ = getTypedOutput<TimestampedVtgFrame, GpsComponent>("vtgOut"); 235 outHdt_ = getTypedOutput<TimestampedHdtFrame, GpsComponent>("hdtOut"); 236 223 237 224 238 setActive( true ); … … 387 401 ggaFrame.notifyObservers(); 388 402 403 memcpy(&mGga.frame, ggaFrame.getFrameData(), sizeof(trame_gga_dbl)); 404 mGga.time = ggaFrame.getRoadTime(); 405 mGga.timerange = 0; 406 407 // send GGA data to output 408 checkedSend(outGga_, mGga); 409 389 410 if ( (isRecording()) && (ggaRecording) ) { 390 411 if (!(ggahdFile.isOpen())) … … 510 531 sendDataToServerSocket(hdtFrame,type); 511 532 hdtFrame.notifyObservers(); 533 534 memcpy(&mHdt.frame, hdtFrame.getFrameData(), sizeof(trame_hdt)); 535 mHdt.time = hdtFrame.getRoadTime(); 536 mHdt.timerange = 0; 537 538 // send VTG data to output 539 checkedSend(outHdt_, mHdt); 512 540 513 541 if ( (isRecording()) && (hdtRecording) ) … … 591 619 vtgFrame.notifyObservers(); 592 620 621 memcpy(&mVtg.frame, vtgFrame.getFrameData(), sizeof(trame_vtg)); 622 mVtg.time = vtgFrame.getRoadTime(); 623 mVtg.timerange = 0; 624 625 // send VTG data to output 626 checkedSend(outVtg_, mVtg); 627 593 628 if (isRecording() && vtgRecording) { 594 629 if (!vtghdFile.isOpen())
Note:
See TracChangeset
for help on using the changeset viewer.