My Project
|
#include <OffsetBase.h>
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) |
Define a class to encapsulate a variety of offsets
OffsetBase::OffsetBase | ( | ) |
Constructor.
....................................................................... Do-nothing constructor and destructor
|
pure virtual |
Pure virtual destructor prevents instantiation of OffsetBase.
|
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.
|
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.
|
virtual |
Install new offsets received from the control program, with sequence number.
....................................................................... Install new offsets received from the control program, with sequence number.
|
virtual |
Set an angle.
....................................................................... Set an angle.
Reimplemented in gcp::antenna::control::TvOffset.
|
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.
|
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.