FACT++  1.0
template<class T , class S >
int StateMachineDrive< T, S >::StartTrackWobble ( const char *  ptr,
size_t  size,
const double &  offset = 0,
const double &  angle = 0 
)
inlineprivate

Definition at line 1045 of file cosyctrl.cc.

References Source::dec, Source::ra, and size.

1046  {
1047  const char *last = ptr+size;
1048 
1049  try
1050  {
1051  const sources::const_iterator it = GetSourceFromDB(ptr, last);
1052 
1053  const string &name = it->first;
1054  const Source &src = it->second;
1055 
1056  return StartWobble(src.ra, src.dec, offset, angle, name);
1057  }
1058  catch (const uint32_t &e)
1059  {
1060  return e;
1061  }
1062 
1063  }
double dec
Definition: drivectrl.cc:125
int StartWobble(const double &srcra, const double &srcdec, const double &woboff, const double &wobang, const string name="")
Definition: cosyctrl.cc:929
double ra
Definition: drivectrl.cc:124
int size
Definition: db_dim_server.c:17
const sources::const_iterator GetSourceFromDB(const char *ptr, const char *last)
Definition: cosyctrl.cc:988