Changeset 88 in pacpussensors
- Timestamp:
- Jun 25, 2015, 6:09:40 PM (10 years ago)
- Location:
- trunk/SpanCPTComponent
- Files:
-
- 1 added
- 2 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; -
trunk/SpanCPTComponent/CPTComponent.h
r78 r88 1 1 2 /********************************************************************* 2 3 // created: 2011/06/28 - 18:18 … … 19 20 20 21 #include "../NMEA0183/include/nmea0183.h" 21 #include "Pacpus/kernel/ComponentBase.h" 22 #include "Pacpus/kernel/DbiteFile.h" 23 #include "Pacpus/kernel/pacpus.h" 22 #include <Pacpus/kernel/ComponentBase.h> 23 #include <Pacpus/kernel/DbiteFile.h> 24 #include <Pacpus/kernel/pacpus.h> 25 #include <Pacpus/kernel/InputOutputInterface.h> 24 26 #include "../Gps/structure_gps.h" 27 25 28 26 29 #ifdef WIN32 … … 158 161 TimestampedInspvaaFrame*, 159 162 TimestampedInscovFrame*); 163 164 // component ouputs 165 void addOutputs(); 166 OutputInterface<QPointF, CPTComponent>* position2DENUOutput_; 160 167 }; 161 168
Note:
See TracChangeset
for help on using the changeset viewer.