FACT++  1.0
int StateMachineRateControl::HandleTriggerRates ( const EventImp evt)
inlineprivate

Definition at line 404 of file ratecontrol.cc.

References EventImp::GetData(), EventImp::GetQoS(), RateControl::State::kConnected, FTM::kFtmRunning, FTM::kFtmStates, RateControl::State::kGlobalThresholdSet, RateControl::State::kInProgress, and RateControl::State::kSettingGlobalThreshold.

Referenced by StateMachineRateControl().

405  {
407 
408  if (fThresholds.empty())
409  return GetCurrentState();
410 
413  return GetCurrentState();
414 
415  if (!CheckEventSize(evt, sizeof(FTM::DimTriggerRates)))
416  return GetCurrentState();
417 
418  const FTM::DimTriggerRates &sdata = *static_cast<const FTM::DimTriggerRates*>(evt.GetData());
419 
421  return ProcessCamera(sdata);
422 
424  ProcessPatches(sdata);
425 
426  return GetCurrentState();
427  }
void ProcessPatches(const FTM::DimTriggerRates &sdata)
Definition: ratecontrol.cc:164
int GetCurrentState() const
return the current state of the machine
int ProcessCamera(const FTM::DimTriggerRates &sdata)
Definition: ratecontrol.cc:259
virtual int GetQoS() const
Definition: EventImp.h:58
virtual const void * GetData() const
Definition: EventImp.h:54
Trigger output enabled, configuration ignored.
Definition: HeadersFTM.h:23
vector< uint32_t > fThresholds
Definition: ratecontrol.cc:98
bool CheckEventSize(const EventImp &evt, size_t size)
Definition: ratecontrol.cc:84

+ Here is the call graph for this function:

+ Here is the caller graph for this function: