FACT++  1.0
template<class T , class S >
int StateMachineDrive< T, S >::MoveTo ( const EventImp evt)
inlineprivate

Definition at line 1918 of file drivectrl.cc.

References EventImp::GetSize(), and EventImp::Ptr().

Referenced by StateMachineDrive< T, S >::StateMachineDrive().

1919  {
1920  if (!CheckEventSize(evt.GetSize(), "MoveTo", 16))
1921  return T::kSM_FatalError;
1922 
1923  const double *dat = evt.Ptr<double>();
1924 
1925  ostringstream out;
1926  out << "Pointing telescope to Zd=" << dat[0] << "deg Az=" << dat[1] << "deg";
1927  T::Message(out);
1928 
1929  return InitMovement(ZdAz(dat[0]*M_PI/180, dat[1]*M_PI/180));
1930  }
int InitMovement(const ZdAz &sky, bool tracking=false, const string &name="")
Definition: drivectrl.cc:1886
Definition: MPointing.h:64
bool CheckEventSize(size_t has, const char *name, size_t size)
Definition: cosyctrl.cc:804
const T * Ptr(size_t offset=0) const
Definition: EventImp.h:74
virtual size_t GetSize() const
Definition: EventImp.h:55

+ Here is the call graph for this function:

+ Here is the caller graph for this function: