Changeset 165 in pacpusframework for branches/2.0-beta1/examples/ProducerConsumerExample/ProducerExample.cpp
- Timestamp:
- Aug 1, 2013, 6:30:31 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0-beta1/examples/ProducerConsumerExample/ProducerExample.cpp
r163 r165 71 71 void ProducerExample::run() 72 72 { 73 unsigned int counter = 0;74 int waitTime = 5000;73 unsigned int counter = 1; 74 int waitTimeMicros = 150 * 1000; 75 75 76 76 std::fstream file(outputFileName, std::ios_base::out | std::ios_base::app); … … 87 87 while (isActive()) { 88 88 //mat.setPixel(0,0,i); 89 LOG_INFO("Size " << mat.size().width()<< " x " << mat.size().height()); 89 LOG_INFO("Sent QImage: " 90 << "size = " << mat.size().width()<< " x " << mat.size().height() 91 ); 90 92 91 93 if (imageOutput && imageOutput->hasConnection()) { … … 93 95 } 94 96 95 LOG_INFO("Sen d data " << counter << " time" << road_time());96 file << ++counter << " " << road_time() << "\n";97 LOG_INFO("Sent data=" << counter << ", time=" << road_time()); 98 file << counter << " " << road_time() << "\n" << std::flush; 97 99 98 usleep(waitTime );100 usleep(waitTimeMicros); 99 101 ++counter; 100 102 setState(MONITOR_OK);
Note:
See TracChangeset
for help on using the changeset viewer.