CARMA C++
sza::antenna::control::Pointing Class Reference

A class used by Tracker to handle pointing. More...

#include <carma/antenna/sza/antenna/control/Pointing.h>

Public Types

enum  PositionType { MOUNT_ANGLES, MOUNT_RATES, TOPOCENTRIC, GEOCENTRIC }
 An enumerator for the Position members below. More...
 

Public Member Functions

void computeGeocentricPosition (double lst, PointingCorrections *f)
 Compute the current geocentric position. More...
 
void convertMountToEncoder (Encoder *encoder, PmacAxis *axis, int current, bool ignoreWrapLogic=true)
 Convert a mount angle to encoder counts. More...
 
sza::util::Axis::Type getAxes ()
 Get the mask of axes to be driven. More...
 
sza::util::RegDate getDate ()
 
unsigned char * getName ()
 
double getRefraction ()
 Return the refraction correction. More...
 
double getUtc ()
 Return the current UTC. More...
 
bool includesAxis (sza::util::Axis::Type axis)
 Return true if the passed axis is included in the set of axes to control. More...
 
bool isFixed ()
 
bool isHalt ()
 
void packEquatGeoc (signed *s_elements)
 Pack geocentric equatorial coordinates. More...
 
void packHorizGeoc (signed *s_elements)
 Pack geocentric horizon coordinates. More...
 
void packHorizMount (signed *s_elements)
 Pack mount horizon coordinates. More...
 
void packHorizTopo (signed *s_elements)
 Pack topocentric horizon coordinates. More...
 
void packSourceName (unsigned *u_elements, int nel)
 Pack the source name for archival in the register database. More...
 
void packUtc (unsigned *u_elements)
 Pack the UTC for archival into the register database. More...
 
 Pointing ()
 Constructor. More...
 
sza::antenna::control::PositionPosition (PositionType type)
 Return a pointer to the requested pointing angle container. More...
 
void reset ()
 Reset method. More...
 
void setAngles (double az, double el, double pa)
 Install the angles to which the axes will be driven. More...
 
void setAxes (sza::util::Axis::Type axes)
 Install the set of axes to drive. More...
 
void setCurrentPosition (AxisPositions &axes)
 
void setDec (double dec)
 Set the Dec of the source. More...
 
void setDist (double dist)
 Set the source distance. More...
 
void setName (char *name)
 Set the current source name. More...
 
void setRa (double ra)
 Set the RA of the source. More...
 
void setRates (double az, double el, double pa)
 Install the rates with which the axes will be driven. More...
 
void setRefraction (double refraction)
 Install the refraction correction. More...
 
void setTime (double utc)
 Set the current time. More...
 
void setTime (int mjd, int sec)
 Set the current time. More...
 
void setupForHalt (SzaShare *share)
 Prepare for a halt of the antenna. More...
 
void setupForReboot (SzaShare *share)
 Prepare for a reboot (of the pmac). More...
 
void setupForSlew (SzaShare *share, TrackerMsg *msg)
 Prepare for a slew. More...
 
void setupForTrack ()
 Prepare for a track command. More...
 

Public Attributes

AxisPositions currentPosition_
 
sza::util::PmacMode::Mode mode_
 

Friends

class Tracker
 

Detailed Description

A class used by Tracker to handle pointing.

Definition at line 37 of file Pointing.h.

Member Enumeration Documentation

An enumerator for the Position members below.

Definition at line 44 of file Pointing.h.

Constructor & Destructor Documentation

sza::antenna::control::Pointing::Pointing ( )

Constructor.

Member Function Documentation

void sza::antenna::control::Pointing::computeGeocentricPosition ( double  lst,
PointingCorrections f 
)

Compute the current geocentric position.

void sza::antenna::control::Pointing::convertMountToEncoder ( Encoder encoder,
PmacAxis axis,
int  current,
bool  ignoreWrapLogic = true 
)

Convert a mount angle to encoder counts.

sza::util::Axis::Type sza::antenna::control::Pointing::getAxes ( )

Get the mask of axes to be driven.

double sza::antenna::control::Pointing::getRefraction ( )

Return the refraction correction.

double sza::antenna::control::Pointing::getUtc ( )

Return the current UTC.

bool sza::antenna::control::Pointing::includesAxis ( sza::util::Axis::Type  axis)

Return true if the passed axis is included in the set of axes to control.

void sza::antenna::control::Pointing::packEquatGeoc ( signed *  s_elements)

Pack geocentric equatorial coordinates.

void sza::antenna::control::Pointing::packHorizGeoc ( signed *  s_elements)

Pack geocentric horizon coordinates.

void sza::antenna::control::Pointing::packHorizMount ( signed *  s_elements)

Pack mount horizon coordinates.

void sza::antenna::control::Pointing::packHorizTopo ( signed *  s_elements)

Pack topocentric horizon coordinates.

void sza::antenna::control::Pointing::packSourceName ( unsigned *  u_elements,
int  nel 
)

Pack the source name for archival in the register database.

Exceptions
Exception
void sza::antenna::control::Pointing::packUtc ( unsigned *  u_elements)

Pack the UTC for archival into the register database.

sza::antenna::control::Position* sza::antenna::control::Pointing::Position ( PositionType  type)

Return a pointer to the requested pointing angle container.

Exceptions
Exception
void sza::antenna::control::Pointing::reset ( )

Reset method.

void sza::antenna::control::Pointing::setAngles ( double  az,
double  el,
double  pa 
)

Install the angles to which the axes will be driven.

void sza::antenna::control::Pointing::setAxes ( sza::util::Axis::Type  axes)

Install the set of axes to drive.

void sza::antenna::control::Pointing::setDec ( double  dec)

Set the Dec of the source.

void sza::antenna::control::Pointing::setDist ( double  dist)

Set the source distance.

void sza::antenna::control::Pointing::setName ( char *  name)

Set the current source name.

void sza::antenna::control::Pointing::setRa ( double  ra)

Set the RA of the source.

void sza::antenna::control::Pointing::setRates ( double  az,
double  el,
double  pa 
)

Install the rates with which the axes will be driven.

void sza::antenna::control::Pointing::setRefraction ( double  refraction)

Install the refraction correction.

void sza::antenna::control::Pointing::setTime ( double  utc)

Set the current time.

void sza::antenna::control::Pointing::setTime ( int  mjd,
int  sec 
)

Set the current time.

void sza::antenna::control::Pointing::setupForHalt ( SzaShare share)

Prepare for a halt of the antenna.

void sza::antenna::control::Pointing::setupForReboot ( SzaShare share)

Prepare for a reboot (of the pmac).

void sza::antenna::control::Pointing::setupForSlew ( SzaShare share,
TrackerMsg *  msg 
)

Prepare for a slew.

void sza::antenna::control::Pointing::setupForTrack ( )

Prepare for a track command.


The documentation for this class was generated from the following file: