Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.apo.nmsu.edu/Telescopes/TCC/html/obj_8cc_source.html
Дата изменения: Tue Sep 15 02:25:37 2015
Дата индексирования: Sat Apr 9 23:58:42 2016
Кодировка:
lsst.tcc: src/obj.cc Source File
lsst.tcc  1.2.2-3-g89ecb63
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
obj.cc
Go to the documentation of this file.
1 #include "boost/make_shared.hpp"
2 
3 #include "tcc/obj.h"
4 
5 namespace tcc {
6 
8  :
9  name(),
10  userSys(boost::make_shared<coordConv::NoneCoordSys>()),
11  userPos(),
12  userPxPMRadVel(),
13  useCheby(false),
14  rotType(RotType_None),
15  rotUser(),
16  azWrapPref(WrapType_Middle),
17  rotWrapPref(WrapType_Middle),
18  mag(coordConv::DoubleNaN),
19  site(MeanLong, MeanLat, Elevation),
20  gsSite(MeanLong, MeanLat, Elevation),
21  chebyUser1(),
22  chebyUser2(),
23  chebyDist(),
24 
25  userArcOff(),
26  objInstXY(),
27  guideOff(),
28  calibOff(),
29  // doArcOffTDICorr(false),
30 
31  updateTime(0),
32  slewEndTime(0),
33 
34  // arcVelCorr(),
35  // prevArcVelCorr(),
36  zpmUserPos(),
37  netUserPos(),
38  arcUserNoArcUserAng(),
39  obsSysPtr(boost::make_shared<coordConv::ObsCoordSys>()),
40  obsPos(),
41  objUserObjAzAng(),
42  objAzInstAng(),
43  objUserInstAng(),
44  // mechObjXY(),
45  // mechInstAng(),
46  // rotAzMechAng(),
47  rotAzObjAzAng(),
48  rotAzRotAng(),
49  spiderInstAng(),
50  rotPhys(),
51  targetMount(),
52 // pathMount(),
53  axisCmdState(),
54  axisErrCode(),
55  axisIsSignificant(),
56  actMount(),
57  axisStatusWord(),
58  axisStatusTime()
59  {
60  coordConv::PVT const NullPVT = coordConv::PVT();
61  coordConv::PVT const ZeroPVT = coordConv::PVT(0, 0, 1);
62 
63  for (int axis = 0; axis < NAxes; ++axis) {
64  targetMount[axis] = NullPVT;
65 // pathMount[axis] = tcc::PVAJT();
68  axisIsSignificant[axis] = false;
69  actMount[axis] = NullPVT;
70  axisStatusWord[axis] = 0;
71  axisStatusTime[axis] = 0;
72 
73  // initalize offsets to 0
74  if (axis < 2) {
75  userArcOff[axis] = ZeroPVT;
76  objInstXY[axis] = ZeroPVT;
77  }
78  guideOff[axis] = ZeroPVT;
79  calibOff[axis] = ZeroPVT;
80 
81  }
82  }
83 
84  bool Obj::isMoving() {
85  for (int axis = 0; axis < NAxes; ++axis) {
86  if (isMoving(axis)) {
87  return true;
88  }
89  }
90  return false;
91  }
92 
93  bool Obj::isSlewing() {
94  for (int axis = 0; axis < NAxes; ++axis) {
95  if (isSlewing(axis)) {
96  return true;
97  }
98  }
99  return false;
100  }
101 }
def axis
Definition: axis.py:11
Obj()
Definition: obj.cc:7
std::tr1::array< coordConv::PVT, NAxes > actMount
Definition: obj.h:110
std::tr1::array< coordConv::PVT, 2 > objInstXY
Definition: obj.h:74
std::tr1::array< AxisErrEnum, NAxes > axisErrCode
Definition: obj.h:107
std::tr1::array< coordConv::PVT, 2 > userArcOff
Definition: obj.h:69
std::tr1::array< double, NAxes > axisStatusTime
Definition: obj.h:112
const double MeanLat
Definition: telConst.h:19
std::tr1::array< coordConv::PVT, NAxes > targetMount
Definition: obj.h:105
const double Elevation
Definition: telConst.h:20
const double MeanLong
Definition: telConst.h:18
std::tr1::array< int, NAxes > axisStatusWord
Definition: obj.h:111
std::tr1::array< bool, NAxes > axisIsSignificant
Definition: obj.h:108
std::tr1::array< AxisStateEnum, NAxes > axisCmdState
Definition: obj.h:106
std::tr1::array< coordConv::PVT, NAxes > calibOff
Definition: obj.h:76
bool isSlewing()
Definition: obj.cc:93
bool isMoving()
Definition: obj.cc:84
std::tr1::array< coordConv::PVT, NAxes > guideOff
Definition: obj.h:75
const int NAxes
Definition: basics.h:15