CARMA C++
RxMgrThread.h
Go to the documentation of this file.
1 
15 #ifndef CARMA_ANTENNA_BIMA_RXMGRTHREAD_H
16 #define CARMA_ANTENNA_BIMA_RXMGRTHREAD_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 "log4cpp/Category.hh"
27 #include "carma/util/IPQreader.h"
28 #include "carma/services/Table.h"
29 #include "carma/antenna/bima/Rx.h"
30 #include "carma/antenna/bima/LO.h"
35 
36 #define RRGET(V) RCGET( _rxReader, V )
37 
38 namespace carma
39 {
40  namespace antenna
41  {
42  namespace bima
43  {
44  class RxMgrThread
45  {
46 
47  public:
48  RxMgrThread
49  (
50  Configuration &config,
51  Rx &rx,
52  LO &lo,
53  Secondary &secondary,
54  CalWheel &calwheel
55  );
56 
57  static void thread( RxMgrThread &This );
58  void run();
59 
60  bool isOk();
61  int rampDown( int oldV, double rampDownModifier );
62 
63  private:
64  std::string _name;
65  Configuration &_config;
66  Rx &_rx;
67  LO &_lo;
68  Secondary &_secondary;
69  CalWheel &_calwheel;
70  static bool _ok;
71  int _relockTimer, _relockRetries;
72 
73  RxCommand::CommandType _command;
74 
75  log4cpp::Category &_logger;
76 
78 
79  }; // class RxMgrThread
80  } // namespace bima
81  } // namespace antenna
82 } // namespace carma
83 
84 #endif // CARMA_ANTENNA_BIMA_RXMGRTHREAD_H
Class definition for Stepper Motors for BIMA systems.
Class definition for Stepper Motors for BIMA systems.
Common table functions.
Class definition for RxCommand on the BIMA antennas.
Class definition for Stepper Motors for BIMA systems.
Class definition for Stepper Motors for BIMA systems.
Class definition for Stepper Motors for BIMA systems.