Ignore:
Timestamp:
09/05/04 18:56:47 (20 years ago)
Author:
rwagner
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/tcpip/MDriveCom.cc

    r4105 r4865  
    182182    str += txt.Print("%08.3f", er.Az());
    183183
    184     return Send("DRIVE-REPORT", str);
     184    return Send("DRIVE-REPORT", str, kFALSE);
    185185}
    186186
    187187bool MDriveCom::SendStatus(const char *stat)
    188188{
    189     return Send("DRIVE-STATUS", stat);
    190 }
     189    return Send("DRIVE-STATUS", stat, kFALSE);
     190}
     191
     192bool MDriveCom::SendStargReport(UInt_t stat, ZdAz miss)
     193{
     194   
     195    // miss [rad]
     196    const MTime t(-1);
     197
     198    miss *= kRad2Deg;
     199
     200    // Set status flag
     201    if (stat&kError)
     202        SetStatus(0);
     203    if (stat&kStopped)
     204        SetStatus(1);
     205    if (stat&kStandby)
     206        SetStatus(2);
     207    if (stat&kMonitoring)
     208        SetStatus(4);
     209   
     210    MString txt;
     211
     212    TString str;
     213    str += txt.Print("%05.3f ", miss.Zd());
     214    str += txt.Print("%05.3f", miss.Az());
     215   
     216    return Send("STARG-REPORT", str, kTRUE);
     217
     218}
     219
     220
     221
     222
     223
Note: See TracChangeset for help on using the changeset viewer.