FACT++
1.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
template<class T , class S >
bool
StateMachineDrive
< T, S >::CheckRange
(
ZdAz
pos
)
inline
private
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
}
StateMachineDrive::fPointingMax
Encoder fPointingMax
Definition:
drivectrl.cc:1585
StateMachineDrive::fPointingMin
Encoder fPointingMin
Definition:
drivectrl.cc:1584
Local::zd
double zd
Definition:
drivectrl.cc:51
Local::az
double az
Definition:
drivectrl.cc:52
Error
Error()
Definition:
HeadersFTM.h:197
Here is the call graph for this function:
StateMachineDrive
Generated on Sun Sep 18 2016 20:50:59 for FACT++ by
1.8.11