Changeset 14352


Ignore:
Timestamp:
08/13/12 09:52:43 (12 years ago)
Author:
tbretz
Message:
The subscription to the nominal bias voltage was missing. Make sure that in case of a bias crate calibration the first step is setting the correct voltage.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/feedback.cc

    r14186 r14352  
    266266        fDimDeviation.Update(vec);
    267267
    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            }
    276282        }
    277283
     
    12171223        Subscribe("BIAS_CONTROL/FEEDBACK_DATA")
    12181224            (bind(&StateMachineFeedback::HandleBiasData,    this, placeholders::_1));
     1225        Subscribe("BIAS_CONTROL/NOMINAL")
     1226            (bind(&StateMachineFeedback::HandleBiasNom,     this, placeholders::_1));
    12191227        Subscribe("FSC_CONTROL/TEMPERATURE")
    12201228            (bind(&StateMachineFeedback::HandleCameraTemp,  this, placeholders::_1));
Note: See TracChangeset for help on using the changeset viewer.