FACT++  1.0
uint16_t ConnectionBias::RampOneStep ( uint16_t  ch)
inlineprivate

Definition at line 748 of file biasctrl.cc.

749  {
750  if (fDacTarget[ch]>fDacActual[ch])
751  return fDacActual[ch]+fRampStep>fDacTarget[ch] ? fDacTarget[ch] : fDacActual[ch]+fRampStep;
752 
753  if (fDacTarget[ch]<fDacActual[ch])
754  return fDacActual[ch]-fRampStep<fDacTarget[ch] ? fDacTarget[ch] : fDacActual[ch]-fRampStep;
755 
756  return fDacActual[ch];
757  }
int16_t fRampStep
Definition: biasctrl.cc:52
vector< uint16_t > fDacTarget
Definition: biasctrl.cc:99
vector< uint16_t > fDacActual
Definition: biasctrl.cc:101