CARMA C++
Secondary.h
Go to the documentation of this file.
1 
15 #ifndef CARMA_ANTENNA_BIMA_SECONDARY_H
16 #define CARMA_ANTENNA_BIMA_SECONDARY_H
17 
18 // C++ Includes
19 #include <cmath>
20 #include <vector>
21 #include <string>
22 #include <iosfwd>
23 
24 // System includes
25 #include <unistd.h>
26 
27 // CARMA includes
28 #include "carma/util/Program.h"
29 #include "carma/services/Table.h"
33 
34 
35 namespace carma
36 {
37  namespace antenna
38  {
39  namespace bima
40  {
41  class Secondary : public TelemetryClient
42  {
43 
44  public:
45  Secondary( Configuration &config );
46 
47  typedef enum { MOVING, ACQUIRED, FAILED } FocusState;
48 
49  float getFocus(); // returns mm
50  short getRawFocus(); // returns counts
51  void setFocus( float mm ); // sets focus in mm
52  FocusState getState();
53  void setState( FocusState fs );
54 
55  private:
56  std::string _name;
57  Motor *_focus;
58 
59  Configuration &_config;
60 
61  }; // class Secondary
62  } // namespace bima
63  } // namespace antenna
64 } // namespace carma
65 
66 #endif // CARMA_ANTENNA_BIMA_SECONDARY_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.