CARMA C++
Polarizer.h
Go to the documentation of this file.
1 
15 #ifndef CARMA_ANTENNA_BIMA_POLARIZER_H
16 #define CARMA_ANTENNA_BIMA_POLARIZER_H
17 
18 #include <map>
19 
20 // System includes
21 #include <string>
22 #include <unistd.h>
23 
24 // CARMA includes
25 #include "carma/util/Program.h"
26 #include "carma/services/Table.h"
30 
31 namespace carma
32 {
33  namespace antenna
34  {
35  namespace bima
36  {
37  class Polarizer : public TelemetryClient
38  {
39 
40  public:
41  Polarizer( Configuration& config );
42 
43  typedef enum { MOVING, BAD, RCP, LCP, H, V, CLEAR } PolPos;
44  void loadConfFile();
45  PolPos getCanonicalPosition();
46  int getInstantPosition();
47 
48 
49  private:
50  Motor *_polarizer;
51  std::map<std::string, unsigned short * > _positions;
52 
53  char _band;
54 
55  static const unsigned short _tolerance = 250;
56  unsigned short *_rcp;
57  unsigned short *_lcp;
58  unsigned short *_clear;
59 
60  }; // class Polarizer
61  } // namespace bima
62  } // namespace antenna
63 } // namespace carma
64 
65 #endif // CARMA_ANTENNA_BIMA_POLARIZER_H
Class definition for Stepper Motors for BIMA systems.
Common table functions.
Class definition for TelemetryClient on the BIMA antennas.
Class definition for Stepper Motors for BIMA systems.