My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
SkyOffset.h
Go to the documentation of this file.
1 #ifndef SKYOFFSET_H
2 #define SKYOFFSET_H
3 
11 #include "gcp/antenna/control/specific/OffsetBase.h"
12 
13 // This is a symbol in iostream!
14 
15 #ifdef dtor
16 #undef dtor
17 #endif
18 
19 #include <iostream>
20 
21 namespace gcp {
22  namespace antenna {
23  namespace control {
24 
25 
30  class Tracker;
31 
36  class SkyOffset : public OffsetBase {
37 
38  public:
39 
43  SkyOffset();
44 
48  void reset();
49 
53  void set(gcp::util::OffsetMsg msg);
54 
55  void setXInRadians(double x);
56  void setYInRadians(double y);
57  void incrXInRadians(double x);
58  void incrYInRadians(double y);
59  void cacheValues();
60 
65  void apply(PointingCorrections* f);
66 
67  /*
68  * Pack offsets for archival in the register database.
69  */
70  void pack(signed* s_elements);
71 
72  void print();
73 
74  friend std::ostream& operator<<(std::ostream& os, SkyOffset& off);
75 
76  private:
77 
81  friend class Tracker;
82 
87  bool active_;
88 
99  double x_,y_;
100 
108  double cos_theta_;
109  double sin_theta_;
110 
114  double cos_radius_;
115 
119  double sin_radius_;
120 
121  }; // End class SkyOffset
122 
123  std::ostream& operator<<(std::ostream& os, SkyOffset& off);
124 
125  }; // End namespace control
126  }; // End namespace antenna
127 } // End namespace gcp
128 
129 #endif // End #ifndef
void pack(signed *s_elements)
Definition: SkyOffset.cc:185
SkyOffset()
Definition: SkyOffset.cc:17
Definition: SkyOffset.h:36
Definition: Tracker.h:49
void reset()
Definition: SkyOffset.cc:25
Definition: OffsetMsg.h:14
Definition: OffsetBase.h:27
Definition: PointingCorrections.h:22
void set(gcp::util::OffsetMsg msg)
Definition: SkyOffset.cc:65
void apply(PointingCorrections *f)
Definition: SkyOffset.cc:150