Changeset 12844 for trunk/FACT++


Ignore:
Timestamp:
02/06/12 09:24:33 (13 years ago)
Author:
tbretz
Message:
There was a mismatch with the units in SOURCE_POSITION
File:
1 edited

Legend:

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

    r12839 r12844  
    652652                     "|dAz[deg]:Control deviation Az"),
    653653        fDimSource("DRIVE_CONTROL/SOURCE_POSITION", "D:1;D:1;D:1;D:1;D:1;D:1;C:31",
     654                     "|Ra_src[h]:Source right ascension"
     655                     "|Dec_src[deg]:Source declination"
    654656                     "|Ra_cmd[h]:Command right ascension"
    655657                     "|Dec_cmd[deg]:Command declination"
    656                      "|Ra_src[h]:Source right ascension"
    657                      "|Dec_src[deg]:Source declination"
    658                      "|Offfset[deg]:Wobble offset"
     658                     "|Offset[deg]:Wobble offset"
    659659                     "|Angle[deg]:Wobble angle"
    660660                     "|Name[string]:Source name if available"),
     
    835835        if (off==0)
    836836        {
    837             const array<double, 6> dim = {{ ra, dec, ra, dec, 0, 0 }};
     837            const array<double, 6> dim = {{ srcra, srcdec, srcra, srcdec, 0, 0 }};
    838838            fDrive.UpdateSource(dim, name);
    839839
     
    858858        const double nra  = (atan2(sindeltara, cosdeltara) + ra)*12/M_PI;
    859859
    860         const array<double, 6> dim = {{ ra, dec, nra, ndec, off, dir }};
     860        const array<double, 6> dim = {{ srcra, srcdec, nra, ndec, woboff, wobang }};
    861861        fDrive.UpdateSource(dim, name);
    862862
Note: See TracChangeset for help on using the changeset viewer.