Changeset 12501


Ignore:
Timestamp:
11/12/11 01:27:14 (13 years ago)
Author:
tbretz
Message:
Implemented commands and buttons to start a drs calibration and to reset the secondary baseline.
File:
1 edited

Legend:

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

    r12437 r12501  
    835835        }
    836836
     837        return T::GetCurrentState();
     838    }
     839
     840    int StartDrsCalibration()
     841    {
     842        SetOutputFormat(kCalib);
     843        return T::GetCurrentState();
     844    }
     845
     846    int ResetSecondaryDrsBaseline()
     847    {
     848        EventBuilderWrapper::ResetSecondaryDrsBaseline();
    837849        return T::GetCurrentState();
    838850    }
     
    17811793            ("");
    17821794
     1795        T::AddEvent("START_DRS_CALIBRATION")
     1796            (bind(&StateMachineFAD::StartDrsCalibration, this))
     1797            ("");
     1798
     1799        T::AddEvent("RESET_SECONDARY_DRS_BASELINE")
     1800            (bind(&StateMachineFAD::ResetSecondaryDrsBaseline, this))
     1801            ("");
     1802
    17831803        T::AddEvent("LOAD_DRS_CALIBRATION", "C")
    17841804            (bind(&StateMachineFAD::LoadDrsCalibration, this, placeholders::_1))
Note: See TracChangeset for help on using the changeset viewer.