Changeset 14352
- Timestamp:
- 08/13/12 09:52:43 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/feedback.cc
r14186 r14352 266 266 fDimDeviation.Update(vec); 267 267 268 if (!fOutputEnabled || fDimBias.state()!=BIAS::State::kVoltageOn) 269 return GetCurrentState(); 270 271 // Trigger calibration 272 if (GetCurrentState()==Feedback::State::kCalibrating && fCursorTemp==2) 273 { 274 DimClient::sendCommandNB("BIAS_CONTROL/REQUEST_STATUS", NULL, 0); 275 return GetCurrentState(); 268 // Warning: Here it is assumed that the ramp up and down is done properly 269 // within the time between two new temperatures and that the calibration 270 // is finished within that time. 271 if (!(GetCurrentState()==Feedback::State::kCalibrating && fCursorTemp==1 && fOutputEnabled && fDimBias.state()==BIAS::State::kVoltageOff)) 272 { 273 if (!fOutputEnabled || fDimBias.state()!=BIAS::State::kVoltageOn) 274 return GetCurrentState(); 275 276 // Trigger calibration 277 if (GetCurrentState()==Feedback::State::kCalibrating && fCursorTemp==2) 278 { 279 DimClient::sendCommandNB("BIAS_CONTROL/REQUEST_STATUS", NULL, 0); 280 return GetCurrentState(); 281 } 276 282 } 277 283 … … 1217 1223 Subscribe("BIAS_CONTROL/FEEDBACK_DATA") 1218 1224 (bind(&StateMachineFeedback::HandleBiasData, this, placeholders::_1)); 1225 Subscribe("BIAS_CONTROL/NOMINAL") 1226 (bind(&StateMachineFeedback::HandleBiasNom, this, placeholders::_1)); 1219 1227 Subscribe("FSC_CONTROL/TEMPERATURE") 1220 1228 (bind(&StateMachineFeedback::HandleCameraTemp, this, placeholders::_1));
Note:
See TracChangeset
for help on using the changeset viewer.