Ignore:
Timestamp:
12/07/03 14:48:11 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/devdrv/macs.cc

    r2613 r2615  
    44#include <sys/time.h>   // timeval->tv_sec
    55
    6 #include "timer.h"
    76#include "network.h"
    87#include "MLogManip.h"
     
    3231Macs::Macs(const BYTE_t nodeid, const char *name, MLog &out)
    3332    : NodeDrv(nodeid, name, out), fMacId(2*nodeid+1),
    34     fPos(0), fPosTime(0.0), fPdoPos(0), fPdoTime(0.0),
    35     fPosActive(0), fRpmActive(0), fStatusPdo3(0xff)
     33    fPos(0), fPdoPos(0), fPosActive(0), fRpmActive(0),
     34    fStatusPdo3(0xff)
    3635{
    3736//    fTimeout = new TTimer(this, 100); //, kFALSE); // 100ms, asynchronous
     
    8786//        lout << "Actual Position: " << dec << (signed long)val << endl;
    8887        fPos = (LWORDS_t)val;
    89         fPosTime.SetTimer(tv);
     88        fPosTime.Set(*tv);
    9089        return;
    9190/*
     
    576575    fStatus = data[3];
    577576
    578     fPdoTime.SetTimer(tv);
     577    fPdoTime.Set(*tv);
    579578}
    580579
     
    735734        return;
    736735
    737     Timer time;
     736    MTime time;
    738737    time.Now();
    739738
     
    811810}
    812811
    813 double Macs::GetTime()
    814 {
    815     return fPosTime.Now();
    816 }
    817 
    818 double Macs::GetMjd()
    819 {
    820     return fPosTime.GetMjd();
    821 }
    822 
    823 double Macs::GetPdoTime()
    824 {
    825     return fPdoTime.Now();
    826 }
    827 
    828 double Macs::GetPdoMjd()
    829 {
    830     return fPdoTime.GetMjd();
    831 }
    832 
    833812/*   0x2000 0 rw Maximum positioning error     */
    834813/*          1 rw Negative Software Endswitch   */
Note: See TracChangeset for help on using the changeset viewer.