Changeset 17214


Ignore:
Timestamp:
10/11/13 15:50:23 (11 years ago)
Author:
tbretz
Message:
This fix should change that sometimes the rate is displayed in red because the biasctrl is in ramping.
File:
1 edited

Legend:

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

    r17192 r17214  
    27462746
    27472747        // --------------- BiasControl -------------
    2748         if (fDimDNS.online() &&
    2749             (fDimBiasControl.state()==BIAS::State::kRamping     ||
    2750              fDimBiasControl.state()==BIAS::State::kOverCurrent ||
    2751              fDimBiasControl.state()==BIAS::State::kVoltageOn   ||
    2752              fDimBiasControl.state()==BIAS::State::kVoltageOff))
    2753         {
    2754             const bool off = fDimBiasControl.state()==BIAS::State::kVoltageOff;
    2755             const bool oc  = fDimBiasControl.state()==BIAS::State::kOverCurrent;
     2748        const bool bias_off  = fDimBiasControl.state()==BIAS::State::kVoltageOff;
     2749        const bool bias_on   = fDimBiasControl.state()==BIAS::State::kVoltageOn;
     2750        const bool bias_oc   = fDimBiasControl.state()==BIAS::State::kOverCurrent;
     2751        const bool bias_ramp = fDimBiasControl.state()==BIAS::State::kOverRamping;
     2752
     2753        if (fDimDNS.online() && (bias_ramp || bias_oc || bias_on || bias_off))
     2754        {
    27562755
    27572756            string col = fBiasControlVoltageMed>3?HTML::kGreen:HTML::kWhite;
    2758             if (fDimBiasControl.state()!=BIAS::State::kVoltageOff)
     2757            if (!bias_off)
    27592758            {
    27602759                if (fBiasControlCurrentMed>60 || fBiasControlCurrentMax>80)
     
    27652764
    27662765            // Bias in overcurrent => Red
    2767             if (fDimBiasControl.state()==BIAS::State::kOverCurrent)
     2766            if (bias_oc)
    27682767                col = HTML::kRed;
    27692768
     
    27712770            // and Bias not in "data-taking state' => Red
    27722771            if (fMcpConfigurationState>MCP::State::kIdle &&
    2773                 fDimBiasControl.state()!=BIAS::State::kVoltageOn &&
    2774                 fDimBiasControl.state()!=BIAS::State::kVoltageOff)
     2772                !bias_on && !bias_off && !bias_ramp)
    27752773                col = HTML::kRed;
    27762774
Note: See TracChangeset for help on using the changeset viewer.