FACT++  1.0
template<class T , class S >
void StateMachineDrive< T, S >::UpdatePointingPosition ( )
inlineprivate

Definition at line 2400 of file drivectrl.cc.

References Local::az, data, Time::GetAsStr(), PointingModel::MountToSky(), and Local::zd.

2401  {
2402  const Encoder sepos = fDrive.GetSePos()*360; // [deg] ref pos for alignment
2403 
2404  const ZdAz pos = fPointingModel.MountToSky(sepos);
2405 
2406  array<double, 2> data;
2407  data[0] = pos.zd*180/M_PI; // Zd [deg]
2408  data[1] = pos.az*180/M_PI; // Az [deg]
2409  fDrive.UpdatePointing(fDrive.GetSeTime(), data);
2410 
2411  if (fDrive.GetVerbosity())
2412  T::Out() << Time().GetAsStr(" %H:%M:%S.%f") << " - Position [deg] " << pos.zd*180/M_PI << " " << pos.az*180/M_PI << endl;
2413  }
Adds some functionality to boost::posix_time::ptime for our needs.
Definition: Time.h:30
ZdAz MountToSky(const Encoder &mnt) const
Definition: drivectrl.cc:317
double zd
Definition: drivectrl.cc:51
double az
Definition: drivectrl.cc:52
float data[4 *1440]
PointingModel fPointingModel
Definition: drivectrl.cc:1578
Definition: MPointing.h:64
std::string GetAsStr(const char *fmt="%Y-%m-%d %H:%M:%S") const
Definition: Time.cc:240

+ Here is the call graph for this function: