Changeset 18653 for trunk/FACT++


Ignore:
Timestamp:
09/29/16 10:44:15 (8 years ago)
Author:
tbretz
Message:
Updated to account for the new data in the EventData stream
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/smartfact.cc

    r18414 r18653  
    17341734    int HandleFadEventData(const EventImp &d)
    17351735    {
    1736         if (!CheckDataSize(d, "FadControl:EventData", 23040))
     1736        if (!CheckDataSize(d, "FadControl:EventData", 23048))
    17371737            return GetCurrentState();
    17381738
    1739         const float *dat = d.Ptr<float>(1440*sizeof(float)*2);
     1739        //const uint32_t run = d.GetUint();
     1740        //const uint32_t evt = d.GetUint(4);
     1741
     1742        const float *dat = d.Ptr<float>(8+1440*sizeof(float)*2);
    17401743
    17411744        /*
     
    27092712        newerr |= SetError(!fPfMiniHumidityHist.empty() && fPfMiniHumidityHist.back()>50,
    27102713                           "Camera humidity inside camera exceeds 50% (PFmini)");
    2711         newerr |= SetError(!fTemperatureControlHist.empty() && (fTemperatureControlHist.back()<26.5 || fTemperatureControlHist.back()>29),
     2714        newerr |= SetError(!fTemperatureControlHist.empty() && (fTemperatureControlHist.back()<25 || fTemperatureControlHist.back()>28),
    27122715                           "Container temperature outside [26.5;29]&deg;C");
    27132716
Note: See TracChangeset for help on using the changeset viewer.