Changeset 12271
- Timestamp:
- 10/25/11 19:59:52 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/feedback.cc
r12234 r12271 96 96 double fT21; 97 97 98 double fBiasOffset; 99 98 100 bool fOutputEnabled; 99 101 … … 186 188 187 189 188 const float diff = (avg-25)* 0.057;190 const float diff = (avg-25)*4./70 + fBiasOffset; 189 191 190 192 vector<float> vec(2*BIAS::kNumChannels); … … 534 536 } 535 537 536 int StartTempCtrl() 537 { 538 int StartTempCtrl(const EventImp &evt) 539 { 540 if (!CheckEventSize(evt.GetSize(), "StartTempCtrl", 4)) 541 return kSM_FatalError; 542 543 fBiasOffset = evt.GetFloat(); 538 544 fCameraTemp = new DimStampedInfo("FSC_CONTROL/TEMPERATURE", (void*)NULL, 0, this); 545 546 ostringstream out; 547 out << "Starting temperature feedback with an offset of " << fBiasOffset << "V"; 548 Message(out); 539 549 540 550 return GetCurrentState(); … … 690 700 ("Start the feedback control loop"); 691 701 692 AddEvent("START_TEMP_CONTROL", kStateConnected)693 (bind(&StateMachineFeedback::StartTempCtrl, this ))702 AddEvent("START_TEMP_CONTROL", "F:1", kStateConnected) 703 (bind(&StateMachineFeedback::StartTempCtrl, this, placeholders::_1)) 694 704 ("Start the temperature control loop"); 695 705
Note:
See TracChangeset
for help on using the changeset viewer.