Changeset 249 in flair-src for trunk/lib/FlairSensorActuator/src/TargetController.cpp
- Timestamp:
- 06/27/18 11:45:33 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairSensorActuator/src/TargetController.cpp
r246 r249 112 112 113 113 void TargetController::Run() { 114 SetPeriodMS(20);; //50Hz115 114 116 115 Message *message; … … 118 117 //if (getFrameworkManager()->ErrorOccured() || !ControllerInitialization()) { 119 118 if (!ControllerInitialization()) { 120 SafeStop();119 // SafeStop(); 121 120 Thread::Err("An error occured, we don't proceed with the loop.\n"); 122 121 } else { 123 124 122 axis = new Matrix((IODevice *)this, axisNumber, 1, floatType); 125 123 button = 126 124 new Matrix((IODevice *)this, buttonNumber, 1, SignedIntegerType(8)); 127 125 126 SetPeriodMS(20); //50Hz 128 127 while (!ToBeStopped()) { 129 128 // Thread::Info("Debug: entering acquisition loop\n"); … … 139 138 140 139 // send pending controller state change request(s) 141 142 140 while (changeStateQueue.size() != 0) { 143 141 message = changeStateQueue.front();
Note:
See TracChangeset
for help on using the changeset viewer.