Changeset 88 in pacpussensors for trunk/SpanCPTComponent/CPTComponent.cpp
- Timestamp:
- Jun 25, 2015, 6:09:40 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SpanCPTComponent/CPTComponent.cpp
r78 r88 15 15 #include <iostream> 16 16 17 #include "Pacpus/kernel/ComponentFactory.h" 18 #include "Pacpus/kernel/DbiteFileTypes.h" 19 #include "Pacpus/kernel/Log.h" 20 #include "Pacpus/PacpusTools/geodesie.h" 21 #include "Pacpus/PacpusTools/ShMem.h" 17 #include <Pacpus/kernel/ComponentFactory.h> 18 #include <Pacpus/kernel/DbiteFileTypes.h> 19 #include <Pacpus/kernel/Log.h> 20 #include <Pacpus/PacpusTools/geodesie.h> 21 #include <Pacpus/PacpusTools/ShMem.h> 22 22 23 23 24 namespace pacpus { … … 106 107 return ComponentBase::CONFIGURED_OK; 107 108 } 109 110 111 112 void CPTComponent::addOutputs() 113 { 114 // must inherit from QObject to use addOutput 115 addOutput<QPointF, CPTComponent>("position2DENU"); 116 } 117 108 118 109 119 void CPTComponent::setPortCOM(const char * port) … … 222 232 } 223 233 mShMem->write(allFramesBuffer, AllFramesSize); 234 235 if (position2DENUOutput_ && position2DENUOutput_->hasConnection()) 236 { 237 // send ENU 2D position 238 QPointF pt( bestgpsposaFrame_.e, bestgpsposaFrame_.n); 239 position2DENUOutput_->send(pt); 240 } 224 241 break; 225 242 … … 411 428 LOG_WARN("cannot connect SIGNAL(newDataAvailable(int)) with SLOT(unlockProcessing(int)"); 412 429 } 413 LOG_INFO("started component '" << name() << "'"); 430 LOG_INFO("started component '" << name() << "'"); 431 432 position2DENUOutput_ = getTypedOutput<QPointF, CPTComponent>("position2DENU"); 433 414 434 415 435 serialPort->THREAD_ALIVE = true;
Note:
See TracChangeset
for help on using the changeset viewer.