Ignore:
Timestamp:
12/30/13 17:05:18 (11 years ago)
Author:
tbretz
Message:
Fixed a bug when calculating the azimuth from the tpoint data; fixed the format string for the TPOINT service; renamed the TPOINT service because a command with the same name already exists; fixed a problem with the padding of the 'C' formated data; replaces 'B' as format by the more accurate 'B:1'
File:
1 edited

Legend:

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

    r17345 r17417  
    234234
    235235        tpoint.fNominalZd  = 90-alt1-dzd;
    236         tpoint.fNominalAz  = 90-az1 +daz;
     236        tpoint.fNominalAz  = az1 +daz;
    237237
    238238        tpoint.fPointingZd = 90-alt1;
     
    733733                     "|Angle[deg]:Wobble angle"
    734734                     "|Name[string]:Source name if available"),
    735         fDimTPoint("DRIVE_CONTROL/TPOINT", "D:1;D:1;D:1;D:1;D:1;D:1;D:1;D:1;S:1;D:1;D:1;D:1;D:1;D:1;D:1;D:1;C",
     735        fDimTPoint("DRIVE_CONTROL/TPOINT_DATA", "D:1;D:1;D:1;D:1;D:1;D:1;D:1;D:1;S:1;S:1;D:1;D:1;D:1;D:1;D:1;D:1;D:1;C",
    736736                   "|Ra[h]:Command right ascension"
    737737                   "|Dec[deg]:Command declination"
     
    750750                   "|Ys[pix]:Y position of star in CCD camera frame"
    751751                   "|Ms[mag]:Artifical magnitude of star (calculated form image))"
    752                    "|Mc[mag]:Catalog magnitude of star"),
     752                   "|Mc[mag]:Catalog magnitude of star"
     753                   "|name[string]:Name of star"),
    753754        fDimStatus("DRIVE_CONTROL/STATUS", "C:2;C:1", "")
    754755
     
    11201121        const float  mag  = evt.Get<float>();
    11211122        const char  *ptr  = evt.Ptr<char>(4);
    1122         const size_t size = evt.GetSize()-4;
    1123 
    1124         string src(ptr, size);
    1125 
    1126         while (src.find_first_of(' '))
     1123
     1124        string src(ptr);
     1125
     1126        while (src.find_first_of(' ')!=string::npos)
    11271127            src.erase(src.find_first_of(' '), 1);
    11281128
     
    14721472            ("Unlock locked state.");
    14731473
    1474         T::AddEvent("SET_AUTORESUME", "B")
     1474        T::AddEvent("SET_AUTORESUME", "B:1")
    14751475            (bind(&StateMachineDrive::SetAutoResume, this, placeholders::_1))
    14761476            ("Enable/disable auto resume"
     
    14781478
    14791479        // Verbosity commands
    1480         T::AddEvent("SET_VERBOSE", "B")
     1480        T::AddEvent("SET_VERBOSE", "B:1")
    14811481            (bind(&StateMachineDrive::SetVerbosity, this, placeholders::_1))
    14821482            ("Set verbosity state"
Note: See TracChangeset for help on using the changeset viewer.