My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
gcp::antenna::control::OffsetBase Class Referenceabstract

#include <OffsetBase.h>

Inheritance diagram for gcp::antenna::control::OffsetBase:
gcp::antenna::control::AzTiltMeter gcp::antenna::control::EquatOffset gcp::antenna::control::MountOffset gcp::antenna::control::SkyOffset gcp::antenna::control::TvOffset gcp::antenna::control::FixedCollimation

Public Member Functions

 OffsetBase ()
 
virtual ~OffsetBase ()=0
 
virtual void apply (PointingCorrections *f)
 
virtual void set (gcp::util::OffsetMsg)
 
virtual void set (gcp::util::OffsetMsg, unsigned seq)
 
virtual void setAngle (double angle)
 

Static Public Member Functions

static double wrapPi (double angle)
 
static double wrap2pi (double angle)
 

Detailed Description

Define a class to encapsulate a variety of offsets

Constructor & Destructor Documentation

OffsetBase::OffsetBase ( )

Constructor.

....................................................................... Do-nothing constructor and destructor

OffsetBase::~OffsetBase ( )
pure virtual

Pure virtual destructor prevents instantiation of OffsetBase.

Member Function Documentation

void OffsetBase::apply ( PointingCorrections f)
virtual

Apply these offsets to the pointing model.

....................................................................... Apply the offsets to the pointing model.

Reimplemented in gcp::antenna::control::SkyOffset, gcp::antenna::control::EquatOffset, and gcp::antenna::control::AzTiltMeter.

void OffsetBase::set ( gcp::util::OffsetMsg  msg)
virtual

Install new offsets received from the control program.

....................................................................... Install new offsets received from the control program.

Reimplemented in gcp::antenna::control::SkyOffset, gcp::antenna::control::EquatOffset, gcp::antenna::control::TvOffset, and gcp::antenna::control::MountOffset.

void OffsetBase::set ( gcp::util::OffsetMsg  msg,
unsigned  seq 
)
virtual

Install new offsets received from the control program, with sequence number.

....................................................................... Install new offsets received from the control program, with sequence number.

void OffsetBase::setAngle ( double  angle)
virtual

Set an angle.

....................................................................... Set an angle.

Reimplemented in gcp::antenna::control::TvOffset.

double OffsetBase::wrap2pi ( double  angle)
static

Round an angle into the range 0-2.pi.

....................................................................... Round an angle into the range 0-2.pi. Note that fmod() is not used because it was found that the version of fmod() that comes with the 68060 and other Motorola CPU's is implemented as a while loop which takes seconds (!) to finish if the divisor is much smaller than the numerator.

Input: angle double The angle to be rounded (radians).

Output: return double An angle in the range: 0 <= angle < 2.pi.

double OffsetBase::wrapPi ( double  angle)
static

Round an angle into the range -pi..pi.

....................................................................... Round an angle into the range -pi..pi.

Input: angle double The angle to be rounded (radians).

Output: return double An angle in the range: -pi <= angle < pi.


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