Changeset 150 in pacpussensors for trunk/StdDbtPlayerComponents/DbtPlyGstManager.cpp
- Timestamp:
- Aug 28, 2017, 7:22:27 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/StdDbtPlayerComponents/DbtPlyGstManager.cpp
r109 r150 32 32 } 33 33 34 void DbtPlyGstManager::processData(road_time_t /*t*/, road_timerange_t /*tr*/, void * buf)34 void DbtPlyGstManager::processData(road_time_t t, road_timerange_t tr , void * buf) 35 35 { 36 // no data available 37 if (buf == NULL) 38 return; 36 // no data available 37 if (!buf) { 38 LOG_DEBUG("no data available: NULL buffer"); 39 return; 40 } 41 // make local copy of GGA frame 42 memcpy(&mGst.frame, buf, sizeof(trame_gst)); 43 mGst.time = t; 44 mGst.timerange = tr; 39 45 40 val = (trame_gst*)(buf); 46 // send GGA data to output 47 checkedSend(outGst, mGst); 48 49 //old val = (trame_gst*)(buf); 41 50 42 51 } … … 54 63 DbtPlyFileManager::startActivity(); 55 64 65 outGst = getTypedOutput<TimestampedGstFrame, DbtPlyGstManager>("gst"); 66 56 67 // user interface 57 68 if (hasGui()) … … 66 77 } 67 78 68 79 void DbtPlyGstManager::addOutputs() 80 { 81 // empty: no output 82 addOutput<TimestampedGstFrame, DbtPlyGstManager>("gst"); 83 } 69 84 70 85 void DbtPlyGstManager::displayUI() 71 86 { 72 // todo 73 printf (" No graphical interface implemented\n");87 // TODO 88 LOG_WARN("GUI not implemented"); 74 89 } 75 90
Note:
See TracChangeset
for help on using the changeset viewer.