FACT++  1.0
void FactGui::UpdateBiasValues ( )
inlineprivate

Definition at line 3352 of file FactGui.h.

References Feedback::State::kCalibrated.

3353  {
3354  const int b = fBiasHvBoard->value();
3355  const int c = fBiasHvChannel->value();
3356 
3357  const int ihw = b*32+c;
3358 
3359  if (fVecBiasVolt.size()>0)
3360  {
3361  fBiasVoltCur->setValue(fVecBiasVolt[ihw]);
3362  SetLedColor(fBiasNominalLed,
3363  fVecBiasDac[ihw]==fVecBiasDac[ihw+416]?kLedGreen:kLedRed, Time());
3364  }
3365 
3366  if (fVecBiasCurrent.size()>0)
3367  {
3368  const double val = abs(fVecBiasCurrent[ihw]) * 5000./4096;
3369  fBiasCurrent->setValue(val);
3370  SetLedColor(fBiasOverCurrentLed,
3372  }
3373 
3374  const bool calibrated = fStateFeedback>=Feedback::State::kCalibrated &&
3375  fVecFeedbackCurrents.size()>0;
3376 
3377  fBiasCalibrated->setValue(calibrated ? fVecFeedbackCurrents[ihw] : 0);
3378  fBiasCalibrated->setEnabled(calibrated);
3379  }
vector< float > fVecFeedbackCurrents
Definition: FactGui.h:2264
vector< float > fVecBiasVolt
Definition: FactGui.h:2450
Adds some functionality to boost::posix_time::ptime for our needs.
Definition: Time.h:30
void SetLedColor(QPushButton *button, LedColor_t col, const Time &t)
Definition: FactGui.h:156
int fStateFeedback
Definition: FactGui.h:2477
vector< int16_t > fVecBiasDac
Definition: FactGui.h:2451
vector< int16_t > fVecBiasCurrent
Definition: FactGui.h:2452