Changeset 75 in pacpussensors for trunk/StereoVisionDisparity/CameraObstacleGridComponent.cpp
- Timestamp:
- Feb 3, 2015, 3:53:11 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/StereoVisionDisparity/CameraObstacleGridComponent.cpp
r70 r75 27 27 // Includes, qt. 28 28 #include <QMetaType> 29 #include <QDateTime> 29 30 30 31 #include "Pacpus/kernel/ComponentFactory.h" … … 195 196 } 196 197 198 199 QString tmp = QDateTime::currentDateTimeUtc().toString("yyyy_MM_dd-hh_mm_ss") + ".txt"; 200 saveFile_.setFileName(tmp); 201 if (!saveFile_.open(QIODevice::WriteOnly | QIODevice::Text)) 202 return; 203 flux_.setDevice(&saveFile_); 204 flux_.setCodec("UTF-8"); 205 197 206 // Run thread 198 207 THREAD_ALIVE = true; … … 241 250 this->udp_con = NULL;*/ 242 251 } 252 253 saveFile_.close(); 243 254 244 255 LOG_INFO("stopped component '" << name() << "'"); … … 701 712 702 713 if (dist_min < maxDistToBrake) 703 emit smallestDistance(); 714 { 715 emit smallestDistance(); 716 cout << "TIME TO BRAKE: " << dist_min << " m at " << road_time() << endl; 717 flux_ << "TIME TO BRAKE: " << dist_min << " m at " << road_time() << endl; 718 } 704 719 705 720 //-----------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.