FACT++  1.0
int StateMachineRateControl::Calibrate ( )
inlineprivate

Definition at line 555 of file ratecontrol.cc.

References RateControl::State::kSettingGlobalThreshold, and Dim::SendCommandNB().

Referenced by StateMachineRateControl().

556  {
557  const int32_t val[2] = { -1, fThresholdReference };
558  Dim::SendCommandNB("FTM_CONTROL/SET_THRESHOLD", val);
559 
560  fThresholds.assign(160, fThresholdReference);
561 
563  fTriggerRate = -1;
564  fCounter = 0;
565  fBlock.assign(160, false);
566 
567  fCalibrateByCurrent = false;
569 
570  ostringstream out;
571  out << "Rate calibration started at a threshold of " << fThresholdReference << " with a target rate of " << fTargetRate << " Hz";
572  Info(out);
573 
575  }
Adds some functionality to boost::posix_time::ptime for our needs.
Definition: Time.h:30
vector< bool > fBlock
Definition: ratecontrol.cc:54
void SendCommandNB(const std::string &command)
Definition: Dim.h:30
int Info(const std::string &str)
Definition: MessageImp.h:47
vector< uint32_t > fThresholds
Definition: ratecontrol.cc:98

+ Here is the call graph for this function:

+ Here is the caller graph for this function: