Changeset 111 in pacpussensors
- Timestamp:
- Dec 15, 2015, 1:19:48 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SpanCPTComponent/CPTComponent.cpp
r105 r111 726 726 case TRAME_RAWIMUSA: 727 727 stringList = sentence.Sentence.split(";"); 728 LOG_DEBUG(sentence.Sentence );728 LOG_DEBUG(sentence.Sentence.toStdString()); 729 729 if (stringList.size()==2) { 730 730 header = stringList.at(0); … … 745 745 case TRAME_INSPVAA: 746 746 stringList = sentence.Sentence.split(";"); 747 LOG_DEBUG(sentence.Sentence );747 LOG_DEBUG(sentence.Sentence.toStdString()); 748 748 if (stringList.size()==2) { 749 749 header = stringList.at(0); … … 763 763 case TRAME_INSCOV: 764 764 stringList = sentence.Sentence.split(";"); 765 LOG_DEBUG(sentence.Sentence );765 LOG_DEBUG(sentence.Sentence.toStdString()); 766 766 if (stringList.size()==2) { 767 767 header = stringList.at(0); -
trunk/StdDbtPlayerComponents/CMakeLists.txt
r110 r111 8 8 set(${PROJECT_NAME}_VERSION_MAJOR 0) 9 9 set(${PROJECT_NAME}_VERSION_MINOR 1) 10 #add_definitions( -DSTDDBTPLAYERCOMPONENTS_EXPORTS ) 11 #add_definitions( -DDBTPLYSICK_EXPORTS) 12 #add_definitions( -DDBTPLYSICK_EXPORTS) 13 add_definitions( -DPACPUSLIB_EXPORTS) 10 add_definitions( -DSTDDBTPLAYERCOMPONENTS_EXPORTS ) 11 add_definitions( -DDBTPLYSICK_EXPORTS) 12 add_definitions( -DDBTPLYGPS_EXPORTS) 13 14 14 15 ################################################################################ 15 16 create_export(EXPORT_HDR ${PROJECT_NAME}) -
trunk/StdDbtPlayerComponents/DbtPlyAlascaManager.cpp
r108 r111 29 29 static ComponentFactory<DbtPlyAlascaManager> sFactory("DbtPlyAlascaManager"); 30 30 31 static const char * kAlaskaMemoryName = "alasca"; 31 //static const char * kAlaskaMemoryName = "alasca";// deprecated 32 32 33 33 ////////////////////////////////////////////////////////////////////////// … … 38 38 LOG_TRACE("constructor(" << name << ")"); 39 39 40 mShMem = new ShMem(kAlaskaMemoryName, sizeof(ScanAlascaData));40 // mShMem = new ShMem(kAlaskaMemoryName, sizeof(ScanAlascaData)); // deprecated 41 41 } 42 42 … … 46 46 { 47 47 LOG_TRACE("destructor"); 48 delete mShMem;48 //delete mShMem; // deprecated 49 49 } 50 50 … … 121 121 int32_t utcMagicWord = 0; 122 122 mDataFile.read(reinterpret_cast<char *>(&(utcMagicWord)), sizeof(utcMagicWord)); 123 if (UTC_MAGIC_WORD != utcMagicWord) {123 /* if (UTC_MAGIC_WORD != utcMagicWord) { 124 124 LOG_WARN("corrupted data, do not use them!"); 125 125 LOG_DEBUG("wrong magic word: EXPECTED=" << UTC_MAGIC_WORD << ", ACTUAL=" << utcMagicWord); … … 127 127 LOG_TRACE("writing scan"); 128 128 mShMem->write(&mAlascaData, sizeof(ScanAlascaData)); 129 } 129 }*/ // deprecated 130 130 131 131 if (mVerbose) { -
trunk/StdDbtPlayerComponents/DbtPlyAlascaManager.h
r110 r111 19 19 //#include "structure/structure_telemetre.h" 20 20 #include "../Alasca/AlascaData.h" 21 #include "StdDbtPlayerComponentsConfig.h" 21 22 22 23 namespace pacpus { … … 24 25 class ShMem; 25 26 26 class PACPUSLIB_API DbtPlyAlascaManager27 class STDDBTPLAYERCOMPONENTS_API DbtPlyAlascaManager 27 28 : public DbtPlyFileManager 28 29 { … … 40 41 41 42 private: 42 ShMem * mShMem;43 //ShMem * mShMem;// deprecated 43 44 ScanAlascaData mAlascaData; 44 45 -
trunk/StdDbtPlayerComponents/DbtPlyCPTComponent.cpp
r110 r111 53 53 LOG_INFO("sizeof(trame_inscov)=" << sizeof(trame_inscov)); 54 54 55 mShMem = new ShMem("SPAN_FRAMES", AllFramesSize);55 // mShMem = new ShMem("SPAN_FRAMES", AllFramesSize); // deprecated 56 56 allFramesBuffer = new char[AllFramesSize]; 57 57 } … … 62 62 { 63 63 delete[] allFramesBuffer; 64 delete mShMem;64 // delete mShMem; // deprecated 65 65 } 66 66 … … 137 137 memcpy(allFramesBuffer, &bestgpsposaFrame_, sizeof(TimestampedBestgpsposaFrame)); 138 138 //ShMem refresh 139 mShMem->write(allFramesBuffer, AllFramesSize);139 // mShMem->write(allFramesBuffer, AllFramesSize); // deprecated 140 140 141 141 { … … 156 156 + sizeof(TimestampedBestgpsposaFrame), 157 157 &rawimuFrame_, sizeof(TimestampedRawimusaFrame)); 158 mShMem->write(allFramesBuffer, AllFramesSize);158 // mShMem->write(allFramesBuffer, AllFramesSize); // deprecated 159 159 160 160 { … … 189 189 + sizeof(TimestampedBestgpsposaFrame) +sizeof(TimestampedRawimusaFrame), 190 190 &inspvaFrame_, sizeof(TimestampedInspvaaFrame)); 191 mShMem->write(allFramesBuffer, AllFramesSize);191 // mShMem->write(allFramesBuffer, AllFramesSize); // deprecated 192 192 193 193 { … … 236 236 + sizeof(TimestampedBestgpsposaFrame) + sizeof(TimestampedRawimusaFrame) + sizeof(TimestampedInspvaaFrame), 237 237 &inscovFrame_, sizeof(TimestampedInscovFrame)); 238 mShMem->write(allFramesBuffer, AllFramesSize);238 // mShMem->write(allFramesBuffer, AllFramesSize); // deprecated 239 239 240 240 { -
trunk/StdDbtPlayerComponents/DbtPlyCPTComponent.h
r110 r111 16 16 #include "DbitePlayer/DbtPlyFileManager.h" 17 17 #include "../NMEA0183/include/nmea0183.h" 18 18 #include "StdDbtPlayerComponentsConfig.h" 19 19 20 20 #define UNKNOWN_NMEA_FRAME -1 21 21 22 struct PACPUSLIB_API Stream8Position22 struct STDDBTPLAYERCOMPONENTS_API Stream8Position 23 23 { 24 24 int32_t dataPos; … … 36 36 class ShMem; 37 37 38 class PACPUSLIB_API DbtPlyCPTComponent38 class STDDBTPLAYERCOMPONENTS_API DbtPlyCPTComponent 39 39 : public DbtPlyFileManager 40 40 { -
trunk/StdDbtPlayerComponents/DbtPlyGgaManager.h
r110 r111 34 34 namespace pacpus { 35 35 36 class PACPUSLIB_API DbtPlyGgaManager36 class DBTPLYGPS_API DbtPlyGgaManager 37 37 : public DbtPlyFileManager 38 38 { -
trunk/StdDbtPlayerComponents/DbtPlyGstManager.h
r110 r111 29 29 namespace pacpus { 30 30 31 class PACPUSLIB_API DbtPlyGstManager31 class DBTPLYGPS_API DbtPlyGstManager 32 32 : public DbtPlyFileManager 33 33 { -
trunk/StdDbtPlayerComponents/DbtPlyImageManager.cpp
r110 r111 39 39 : DbtPlyFileManager (name) 40 40 , im_(NULL) 41 , shMem_(NULL)41 //, shMem_(NULL) // deprecated 42 42 , imageMutex_(new QMutex()) 43 43 , firstTime(true) … … 51 51 delete imageMutex_; 52 52 // #endif 53 if (shMem_) {53 /* if (shMem_) { 54 54 delete shMem_; 55 55 shMem_ = NULL; 56 } 56 }*/ 57 57 } 58 58 … … 114 114 } 115 115 LOG_TRACE("image loaded"); 116 if (firstTime) {116 /* if (firstTime) { 117 117 // send image in shared memory 118 118 shmemSize = im_->byteCount(); … … 121 121 firstTime = false; 122 122 } 123 shMem_->write(im_->bits(), shmemSize); 123 shMem_->write(im_->bits(), shmemSize);*/ // deprecated 124 124 } 125 125 break; … … 134 134 ComponentBase::COMPONENT_CONFIGURATION DbtPlyImageManager::configureComponent(XmlComponentConfig config) 135 135 { 136 mShMemName = kDefaultMemoryName.c_str();136 /*mShMemName = kDefaultMemoryName.c_str(); 137 137 if (config.getProperty("shmem") != QString::null) { 138 138 mShMemName = config.getProperty("shmem"); 139 } 139 } */ // deprecated 140 140 if (config.getIntProperty("ui") == 1) { 141 141 displayUI(); -
trunk/StdDbtPlayerComponents/DbtPlyImageManager.h
r110 r111 16 16 17 17 #include "Pacpus/DbitePlayer/DbtPlyFileManager.h" 18 18 #include "StdDbtPlayerComponentsConfig.h" 19 19 20 20 class QImage; … … 28 28 /// 29 29 /// shmem=STRING (name of output shared memory) default=IMAGE 30 class PACPUSLIB_API DbtPlyImageManager30 class STDDBTPLAYERCOMPONENTS_API DbtPlyImageManager 31 31 : public DbtPlyFileManager 32 32 { … … 58 58 private: 59 59 QMutex * imageMutex_; 60 ShMem * shMem_;60 // ShMem * shMem_; // deprecated 61 61 bool firstTime; 62 62 -
trunk/StdDbtPlayerComponents/DbtPlySickLDMRSManager.h
r110 r111 38 38 class ShMem; 39 39 40 class PACPUSLIB_API DbtPlySickLDMRSManager40 class DBTPLYSICK_API DbtPlySickLDMRSManager 41 41 : public DbtPlyFileManager 42 42 { -
trunk/StdDbtPlayerComponents/DbtPlySickLMSManager.h
r110 r111 18 18 #include "Pacpus/DbitePlayer/DbtPlyFileManager.h" 19 19 #include "../Sick/SickLMSData.h" 20 #include "StdDbtPlayerComponentsConfig.h" 20 21 21 22 … … 24 25 class ShMem; 25 26 26 class PACPUSLIB_API DbtPlySickLMSManager27 class STDDBTPLAYERCOMPONENTS_API DbtPlySickLMSManager 27 28 : public DbtPlyFileManager 28 29 { -
trunk/StdDbtPlayerComponents/DbtPlyVtgManager.h
r110 r111 30 30 class ComponentManager; 31 31 32 class PACPUSLIB_API DbtPlyVtgManager32 class DBTPLYGPS_API DbtPlyVtgManager 33 33 : public DbtPlyFileManager 34 34 { -
trunk/VelodyneComponent/VelodyneComponent.cpp
r99 r111 104 104 LOG_ERROR("cannot connect SIGNAL(readyRead()) to SLOT(readPendingDatagrams())"); 105 105 } 106 106 /* 107 107 mShMem = new ShMem(kVelodyneSharedMemoryName.c_str(), sizeof(VelodynePolarData) ); 108 108 if (!mShMem) { 109 109 LOG_FATAL("cannot create Velodyne shared memory"); 110 110 return; 111 } 111 }*/ // deprecated 112 112 } 113 113 … … 156 156 mVelodyneSphericDataFile.close(); 157 157 } 158 158 /* 159 159 if (mShMem) { 160 160 delete mShMem; 161 161 mShMem = NULL; 162 } 162 } */ // deprecated 163 163 } 164 164 … … 395 395 void VelodyneComponent::exposeData() 396 396 { 397 mShMem->write(mFullBuffer, sizeof(VelodynePolarData) ); 398 } 397 // mShMem->write(mFullBuffer, sizeof(VelodynePolarData) ); // deprecated 398 399 // TODO ADD OUTPUT 400 } -
trunk/VelodyneComponent/VelodyneComponent.h
r99 r111 96 96 DbiteFile mVelodyneSphericDataFile; 97 97 98 ShMem * mShMem;98 // ShMem * mShMem; // deprecated 99 99 }; 100 100
Note:
See TracChangeset
for help on using the changeset viewer.