FACT++  1.0
template<class T , class S >
bool StateMachineDrive< T, S >::CheckRange ( ZdAz  pos)
inlineprivate

Definition at line 1786 of file drivectrl.cc.

References Local::az, Error(), and Local::zd.

1787  {
1788  if (pos.zd<fPointingMin.zd)
1789  {
1790  T::Error("Zenith distance "+to_string(pos.zd)+" below limit "+to_string(fPointingMin.zd));
1791  return false;
1792  }
1793 
1794  if (pos.zd>fPointingMax.zd)
1795  {
1796  T::Error("Zenith distance "+to_string(pos.zd)+" exceeds limit "+to_string(fPointingMax.zd));
1797  return false;
1798  }
1799 
1800  if (pos.az<fPointingMin.az)
1801  {
1802  T::Error("Azimuth angle "+to_string(pos.az)+" below limit "+to_string(fPointingMin.az));
1803  return false;
1804  }
1805 
1806  if (pos.az>fPointingMax.az)
1807  {
1808  T::Error("Azimuth angle "+to_string(pos.az)+" exceeds limit "+to_string(fPointingMax.az));
1809  return false;
1810  }
1811 
1812  return true;
1813  }
Encoder fPointingMax
Definition: drivectrl.cc:1585
Encoder fPointingMin
Definition: drivectrl.cc:1584
double zd
Definition: drivectrl.cc:51
double az
Definition: drivectrl.cc:52
Error()
Definition: HeadersFTM.h:197

+ Here is the call graph for this function: