Changeset 109 in pacpussensors for trunk/StdDbtPlayerComponents/DbtPlyVtgManager.cpp
- Timestamp:
- Dec 10, 2015, 10:49:18 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/StdDbtPlayerComponents/DbtPlyVtgManager.cpp
r82 r109 4 4 // 5 5 // author: Elie Al Alam & Gerald Dherbomez 6 // 6 // 7 7 // version: $Id: DbtPlyVtgManager.cpp 676 2008-06-26 10:33:57Z gdherbom $ 8 8 // … … 22 22 // Construction de la fabrique de composant DbtPlyVtgManager 23 23 ////////////////////////////////////////////////////////////////////////// 24 static ComponentFactory<DbtPlyVtgManager> sFactory("DbtPlyVtgManager"); 24 static ComponentFactory<DbtPlyVtgManager> sFactory("DbtPlyVtgManager"); 25 25 26 26 // double dist1[2]; … … 37 37 38 38 ////////////////////////////////////////////////////////////////////////// 39 // Destructor 39 // Destructor 40 40 DbtPlyVtgManager::~DbtPlyVtgManager() 41 41 { … … 45 45 ////////////////////////////////////////////////////////////////////////// 46 46 // Processes data 47 void DbtPlyVtgManager::processData(road_time_t /*t*/, road_timerange_t /*tr*/, void * buf)47 void DbtPlyVtgManager::processData(road_time_t t, road_timerange_t tr , void * buf) 48 48 { 49 49 val = (trame_vtg*)(buf); 50 51 // make local copy of VTG frame 52 memcpy(&mVtg.frame, val, sizeof(trame_vtg)); 53 mVtg.time = t; 54 mVtg.timerange = tr; 55 56 // send VTG data to output 57 checkedSend(outVtg, mVtg); 50 58 51 59 } … … 59 67 60 68 void DbtPlyVtgManager::startActivity() 61 { 69 { 62 70 DbtPlyFileManager::startActivity(); 63 // user interface 71 outVtg = getTypedOutput<TimestampedVtgFrame, DbtPlyVtgManager>("vtg"); 72 // user interface 64 73 } 65 74 … … 69 78 } 70 79 80 81 /************************************************************************ 82 * Called by the framework at initialization 83 ************************************************************************/ 84 void DbtPlyVtgManager::addInputs() 85 { 86 // uncomment to add an input 87 } 88 89 90 /************************************************************************ 91 * Called by the framework at initialization 92 ************************************************************************/ 93 void DbtPlyVtgManager::addOutputs() 94 { 95 // empty: no output 96 addOutput<TimestampedVtgFrame, DbtPlyVtgManager>("vtg"); 97 } 71 98 } // namespace pacpus
Note:
See TracChangeset
for help on using the changeset viewer.