Ignore:
Timestamp:
12/07/03 14:48:11 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Cosy/tcpip
Files:
3 edited

Legend:

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

    r2517 r2615  
    2626    str.Remove(0, len);
    2727
    28     fT.SetTimer(y, m, d, h, min, s, ms/1000.);
     28    fT.Set(y, m, d, h, min, s, ms);
    2929
    3030    // Remove the 30 tokens of the subsystem status
     
    8888bool MCeCoCom::Send(const char *str)
    8989{
    90     Timer t;
     90    MTime t;
    9191    t.Now();
     92
     93    UShort_t y1, y2, ms1, ms2;
     94    Byte_t mon1, mon2, d1, d2, h1, h2, m1, m2, s1, s2;
     95
     96    t.GetDate(y1, mon1, d1);
     97    t.GetTime(h1, m1, s1, ms1);
     98
     99    fT.GetDate(y2, mon2, d2);
     100    fT.GetTime(h2, m2, s2, ms2);
    92101
    93102    const char *msg =
     
    96105             "%02d %04d %02d %02d %02d %02d %02d %03d "
    97106             "%s\n", (const char*)fCommand,
    98              fStatus, t.Year(), t.Month(), t.Day(), t.H(), t.M(), t.S(), t.MilliSec(),
    99              fComStat, fT.Year(), fT.Month(), fT.Day(), fT.H(), fT.M(), fT.S(), fT.MilliSec(),
     107             fStatus,  y1, mon1, d1, h1, m1, s1, ms1,
     108             fComStat, y2, mon2, d2, h2, m2, s2, ms2,
    100109             str);
    101110
  • trunk/MagicSoft/Cosy/tcpip/MCeCoCom.h

    r2517 r2615  
    1010#endif
    1111
    12 #ifndef COSY_Timer
    13 #include "timer.h"
     12#ifndef MARS_MTime
     13#include "MTime.h"
    1414#endif
    1515
     
    2525
    2626    TString fCommand;     // report string of the current system
    27     Timer   fT;           // time of last report received
     27    MTime   fT;           // time of last report received
    2828    char    fStatus;      // current status of this system
    2929    int     fCCStatus;    // global status of CC
  • trunk/MagicSoft/Cosy/tcpip/MDriveCom.cc

    r2613 r2615  
    44
    55#include "coord.h"
    6 #include "Slalib.h"
     6#include "MAstro.h"
    77#include "MCosy.h"
    88
     
    2424    str.Remove(0, len);
    2525
    26     ret = Slalib::Dms2Deg(d, m, s, sgn);
     26    ret = MAstro::Dms2Deg(d, m, s, sgn);
    2727    return true;
    2828}
     
    137137    UShort_t d, m, s;
    138138
    139     Slalib::Deg2Dms(deg, sgn, d, m, s);
     139    MAstro::Deg2Dms(deg, sgn, d, m, s);
    140140
    141141    str += Form("%c %03d %02d %03d ", sgn, d, m, s);
     
    161161        SetStatus(4);
    162162
    163     Timer t;
     163    MTime t;
    164164    t.Now();
    165165
Note: See TracChangeset for help on using the changeset viewer.