CARMA C++
CalWheel.h
Go to the documentation of this file.
1 
15 #ifndef CARMA_ANTENNA_BIMA_CALWHEEL_H
16 #define CARMA_ANTENNA_BIMA_CALWHEEL_H
17 
18 #include <vector>
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 CalWheel : public TelemetryClient
38  {
39 
40  public:
41  CalWheel( Configuration& config );
42 
43  typedef enum { SKY, AMB, FIXED, REFLEC, MOVING, ERROR, UNKNOWN } Positions;
44 
45  void setPosition( CalWheel::Positions position, int iband );
46  void setPosition( std::string stringpos, int iband );
47  int getInstantPosition();
48  Positions getPosition( int iband );
49 
50  double getAmbTemp();
51 
52  void setCurSequenceNo( int seq );
53  void setNextSequenceNo( int seq );
54  int getCurSequenceNo();
55  int getNextSequenceNo();
56 
57  private:
58  static const int skytarg[5];
59  static const int ambtarg[5];
60  static const int hottarg[5];
61 
62  Motor *_calwheel;
63  Motor *_pol;
64  bool _cmOpticsInstalled;
65 
66 
67  }; // class CalWheel
68  } // namespace bima
69  } // namespace antenna
70 } // namespace carma
71 
72 #endif // CARMA_ANTENNA_BIMA_CALWHEEL_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.