Changeset 2615 for trunk/MagicSoft/Cosy/devdrv/macs.cc
- Timestamp:
- 12/07/03 14:48:11 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/devdrv/macs.cc
r2613 r2615 4 4 #include <sys/time.h> // timeval->tv_sec 5 5 6 #include "timer.h"7 6 #include "network.h" 8 7 #include "MLogManip.h" … … 32 31 Macs::Macs(const BYTE_t nodeid, const char *name, MLog &out) 33 32 : NodeDrv(nodeid, name, out), fMacId(2*nodeid+1), 34 fPos(0), fP osTime(0.0), fPdoPos(0), fPdoTime(0.0),35 f PosActive(0), fRpmActive(0), fStatusPdo3(0xff)33 fPos(0), fPdoPos(0), fPosActive(0), fRpmActive(0), 34 fStatusPdo3(0xff) 36 35 { 37 36 // fTimeout = new TTimer(this, 100); //, kFALSE); // 100ms, asynchronous … … 87 86 // lout << "Actual Position: " << dec << (signed long)val << endl; 88 87 fPos = (LWORDS_t)val; 89 fPosTime.Set Timer(tv);88 fPosTime.Set(*tv); 90 89 return; 91 90 /* … … 576 575 fStatus = data[3]; 577 576 578 fPdoTime.Set Timer(tv);577 fPdoTime.Set(*tv); 579 578 } 580 579 … … 735 734 return; 736 735 737 Timertime;736 MTime time; 738 737 time.Now(); 739 738 … … 811 810 } 812 811 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 833 812 /* 0x2000 0 rw Maximum positioning error */ 834 813 /* 1 rw Negative Software Endswitch */
Note:
See TracChangeset
for help on using the changeset viewer.