10 #ifndef CARMA_ANTENNA_BIMA_MONITORUPDATER_H
11 #define CARMA_ANTENNA_BIMA_MONITORUPDATER_H
13 #define MAXGAP 0.0001736111
15 #define MAXFASTGAP 0.00001574074
16 #define MAXSLOWGAP 0.00003148148
28 #include "carma/util/Program.h"
29 #include "carma/util/PthreadMutex.h"
31 #include "carma/util/FrameAlignedTimer.h"
37 #include "carma/monitor/AntennaCommon.h"
38 #include "carma/monitor/BimaSubsystem.h"
56 #define FLATTENCASEENUM( A, B, C ) \
82 log4cpp::Category &logger,
83 double autoWriteDelayInS );
92 static void *startThread(
void *arg );
93 void monitorThread(
void );
96 { _mutex.
Lock(); _ok =
true; _mutex.
Unlock();};
98 { _mutex.
Lock();
bool status = _ok; _ok =
false; _mutex.
Unlock();
return status; };
106 void setAntCommonLoMonitorPoints(
107 carma::monitor::AntennaCommon::LO & antComLO,
108 carma::antenna::bima::Rx & rx,
109 carma::antenna::bima::LO & lo,
110 carma::monitor::AntennaCommon::YigStateMonitorPointEnum::YIGSTATE & yigState,
111 carma::monitor::AntennaCommon::LoStateMonitorPointEnum::LOSTATE & loState,
112 const carma::monitor::VaractorModule & varactor,
115 void setAntCommonRxMonitorPoints(
116 carma::monitor::AntennaCommon::Receivers & antComRx,
117 carma::antenna::bima::Rx & rx,
118 carma::monitor::AntennaCommon::RxStateMonitorPointEnum::RXSTATE & rxGoodmpe,
119 const carma::monitor::AntennaCommon::YigStateMonitorPointEnum::YIGSTATE & yigState,
120 const carma::monitor::AntennaCommon::LoStateMonitorPointEnum::LOSTATE & loState );
122 carma::monitor::BimaSubsystem *_monPnts;
123 carma::monitor::BimaSubsystem *_readMonPnts;
125 DewarRegulation *_dewarReg;
127 Secondary *_secondary;
128 Polarizer *_polarizer;
135 Configuration &_config;
136 log4cpp::Category &_logger;
147 #endif // CARMA_ANTENNA_BIMA_MONITORUPDATER_H
Exception class for errors.
Class definition for Stepper Motors for BIMA systems.
Class definition for Stepper Motors for BIMA systems.
Server stub for MonitorUpdater Documentation for the.
virtual ~MonitorUpdater()
Destructor.
Class definition for Stepper Motors for BIMA systems.
Interface file for the carma::util::Trace class and related macros.
Common parameters used CARMA-wide, both typedefs and constants such as number of antennas.
MonitorUpdater(Configuration &config, log4cpp::Category &logger, double autoWriteDelayInS)
Constructor.
Class definition for SharedMemory on the BIMA antennas.
Class definition for Stepper Motors for BIMA systems.
void Lock()
Obtain a lock on the instance for the caller's thread.
Class definition for Stepper Motors for BIMA systems.
Class definition for Stepper Motors for BIMA systems.
A simple wrapper class that makes use of ::pthread_mutex_t easier in a C++ world. ...
Class definition for Stepper Motors for BIMA systems.
void Unlock()
Release a lock that is held on the instance by the caller's thread.