My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
OffsetBase.h
Go to the documentation of this file.
1 #ifndef OFFSETBASE_H
2 #define OFFSETBASE_H
3 
11 #include "gcp/util/common/OffsetMsg.h"
12 #include "gcp/antenna/control/specific/PointingCorrections.h"
13 
14 // Share includes for constants mastor, pi, twopi
15 
16 #include "gcp/control/code/unix/libunix_src/common/const.h"
17 
18 namespace gcp {
19  namespace antenna {
20  namespace control {
21 
22  class PointingCorrections;
23 
27  class OffsetBase {
28 
29  public:
30 
34  OffsetBase();
35 
40  virtual ~OffsetBase() = 0;
41 
42  // Define methods which should be over-written by classes
43  // which inherit from Offset
44  //
45  // These will be stubbed out so they only need to be defined
46  // by inheritors where relevant
47 
51  virtual void apply(PointingCorrections* f);
52 
56  virtual void set(gcp::util::OffsetMsg);
57 
62  virtual void set(gcp::util::OffsetMsg, unsigned seq);
63 
67  virtual void setAngle(double angle);
68 
69  // Some utility functions we want all inheritors of this class
70  // to have.
71 
75  static double wrapPi(double angle);
76 
80  static double wrap2pi(double angle);
81  };
82 
83  }; // End namespace control
84  }; // End namespace antenna
85 } // End namespace gcp
86 
87 #endif
virtual ~OffsetBase()=0
Definition: OffsetBase.cc:18
virtual void setAngle(double angle)
Definition: OffsetBase.cc:42
OffsetBase()
Definition: OffsetBase.cc:17
static double wrap2pi(double angle)
Definition: OffsetBase.cc:72
static double wrapPi(double angle)
Definition: OffsetBase.cc:53
Definition: OffsetMsg.h:14
virtual void apply(PointingCorrections *f)
Definition: OffsetBase.cc:26
Definition: OffsetBase.h:27
virtual void set(gcp::util::OffsetMsg)
Definition: OffsetBase.cc:31
Definition: PointingCorrections.h:22