Ignore:
Timestamp:
12/01/12 22:01:29 (12 years ago)
Author:
tbretz
Message:
Be a bit more coservative with the rates; adapted the tracking report to the new format; directly use th dev-paramater sent by the new drivectrl version
File:
1 edited

Legend:

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

    r14710 r14712  
    990990    int HandleDriveTracking(const EventImp &d)
    991991    {
    992         if (!CheckDataSize(d, "DriveControl:Tracking", 56))
     992        if (!CheckDataSize(d, "DriveControl:Tracking", 64))
    993993            return GetCurrentState();
    994994
     
    998998        const double Az  = d.Get<double>(4*8);
    999999
    1000         const double zd  = Zd                 * M_PI / 180;
    1001         const double dzd = d.Get<double>(5*8) * M_PI / 180;
    1002         const double daz = d.Get<double>(6*8) * M_PI / 180;
    1003 
    1004         // Correct:
    1005         // const double d  = cos(del) - sin(zd+dzd)*sin(zd)*(1.-cos(daz));
    1006 
    1007         // Simplified:
    1008         double dev = cos(dzd) - sin(zd+dzd)*sin(zd)*(1.-cos(daz));
    1009         dev = acos(dev) * 180 / M_PI * 3600;
     1000        const double dev = d.Get<double>(7*8);
    10101001
    10111002        fDriveControlTrackingDevHist.push_back(dev);
     
    23092300                           "Sensor temperature exceeds outside temperature by more than 8&deg;C");
    23102301
    2311         newerr |= SetError(fFtmControlTriggerRateTooLow>1 && fDimFtmControl.state()==FTM::State::kTriggerOn,
     2302        newerr |= SetError(fFtmControlTriggerRateTooLow>2 && fDimFtmControl.state()==FTM::State::kTriggerOn,
    23122303                           "Trigger rate below 1Hz while trigger switched on");
    23132304
     
    25142505
    25152506        // ------------------ Drive -----------------
    2516         if (fDimDNS.online() && fDimDriveControl.state()>=Drive::State::kArmed)   // Armed, Moving, Tracking
     2507        if (fDimDNS.online() && fDimDriveControl.state()>=Drive::State::kArmed)   // Armed, Moving, Tracking, OnTrack, Error
    25172508        {
    25182509            const uint32_t dev = fDriveControlTrackingDevHist.size()>0 ? round(fDriveControlTrackingDevHist.back()) : 0;
Note: See TracChangeset for help on using the changeset viewer.