Changeset 150 in pacpussensors for trunk/StdDbtPlayerComponents
- Timestamp:
- Aug 28, 2017, 7:22:27 PM (7 years ago)
- Location:
- trunk/StdDbtPlayerComponents
- Files:
-
- 2 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 -
trunk/StdDbtPlayerComponents/DbtPlyGstManager.h
r111 r150 25 25 #include "Pacpus/PacpusTools/ShMem.h" 26 26 27 28 #include <Pacpus/kernel/InputOutputInterface.h> 29 27 30 #include "DbtPlyGpsConfig.h" 28 31 … … 32 35 : public DbtPlyFileManager 33 36 { 37 Q_OBJECT 38 34 39 public: 35 40 DbtPlyGstManager(QString name); 36 41 ~DbtPlyGstManager(); 37 42 virtual ComponentBase::COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config); 43 44 //virtual void addInputs(); 45 virtual void addOutputs(); 38 46 39 47 protected: … … 46 54 trame_gst* val; 47 55 56 // Local copy of GGA data with timestamp 57 TimestampedGstFrame mGst; 58 59 // Declaration of outputs 60 OutputInterface<TimestampedGstFrame, DbtPlyGstManager>* outGst; 48 61 49 62 };
Note:
See TracChangeset
for help on using the changeset viewer.