FACT++  1.0
void FactGui::handleFtmDynamicData ( const DimData d)
inlineprivate

Definition at line 1823 of file FactGui.h.

References FTM::DimDynamicData::fState, FTM::DimDynamicData::fTempSensor, FTM::kFtmLocked, DimData::ref(), and DimData::time.

Referenced by infoHandler().

1824  {
1825  if (!CheckSize(d, sizeof(FTM::DimDynamicData)))
1826  return;
1827 
1828  const FTM::DimDynamicData &sdata = d.ref<FTM::DimDynamicData>();
1829 
1830  fFtmTemp0->setValue(sdata.fTempSensor[0]*0.1);
1831  fFtmTemp1->setValue(sdata.fTempSensor[1]*0.1);
1832  fFtmTemp2->setValue(sdata.fTempSensor[2]*0.1);
1833  fFtmTemp3->setValue(sdata.fTempSensor[3]*0.1);
1834 
1835  SetLedColor(fClockCondLed, sdata.fState&FTM::kFtmLocked ? kLedGreen : kLedRed, d.time);
1836  }
bool CheckSize(const DimData &d, size_t sz, bool print=true) const
Definition: FactGui.h:639
void SetLedColor(QPushButton *button, LedColor_t col, const Time &t)
Definition: FactGui.h:156
const Time time
Definition: DimData.h:9
const T & ref(uint32_t offset=0) const
Definition: DimData.h:35
float fTempSensor[4]
Definition: HeadersFTM.h:548

+ Here is the call graph for this function:

+ Here is the caller graph for this function: