Ignore:
Timestamp:
Aug 1, 2013, 6:30:31 PM (11 years ago)
Author:
Marek Kurdej
Message:

Major: changed plugins section name to plugings. Parameters section will be used for something else.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0-beta1/examples/ProducerConsumerExample/ProducerExample.cpp

    r163 r165  
    7171void ProducerExample::run()
    7272{
    73     unsigned int counter = 0;
    74     int waitTime = 5000;
     73    unsigned int counter = 1;
     74    int waitTimeMicros = 150 * 1000;
    7575
    7676    std::fstream file(outputFileName, std::ios_base::out | std::ios_base::app);
     
    8787    while (isActive()) {
    8888        //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            );
    9092
    9193        if (imageOutput && imageOutput->hasConnection()) {
     
    9395        }
    9496
    95         LOG_INFO("Send 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;
    9799
    98         usleep(waitTime);
     100        usleep(waitTimeMicros);
    99101        ++counter;
    100102        setState(MONITOR_OK);
Note: See TracChangeset for help on using the changeset viewer.