15 #ifndef CARMA_ANTENNA_BIMA_DEWAR_H
16 #define CARMA_ANTENNA_BIMA_DEWAR_H
25 #include "carma/util/Program.h"
37 class Dewar :
public TelemetryClient
41 Dewar( Configuration& conf );
43 std::string getSISMixerBName();
44 std::string getSISMixerBConfFile();
45 std::string getSISMixerDName();
46 std::string getSISMixerDConfFile();
47 std::string getSISTuningMode();
56 double cmStage1temp();
57 double cmStage2temp();
58 double cmStage3temp();
59 double cmStage4temp();
61 double getHeater3mW();
62 void setHeater3V(
double volts );
65 void setGainI(
double set );
67 double getGateD() {
return _gateD; };
68 double getGateB() {
return _gateB; };
69 void setGainP(
double set );
70 int getHeaterMinCnt();
71 int getHeaterMaxCnt();
73 double getCompressorInletTemp();
74 double getCompressorDischTemp();
75 double getCompressorExchTemp();
76 double getCompressorSumpTemp();
77 double getHeSupplyP();
78 double getHeReturnP();
80 double getGateVoltage(
unsigned short deviceID);
81 double getDrainCurrent(
unsigned short deviceID);
82 double getIFCurrent();
86 std::vector<std::string> _stageFiles;
87 std::vector<double> _stage1Curve;
88 std::vector<double> _stage2Curve;
89 std::vector<double> _stage3Curve;
90 std::vector<double> _stage4Curve;
91 std::vector<double> _stage5Curve;
92 std::vector<double> _curve10;
93 std::vector<double> _t;
94 double _gainp, _gaini, _powexp, _gateB, _gateD;
95 int _hmincnt, _hmaxcnt, _safeatten;
97 Configuration _config;
99 double tempConvert( std::vector<double> *tryThisCurve,
double volts );
100 double diodeRawToVolts(
int raw )
101 {
return (
double)(raw * TVOLTS); };
104 void loadDiodeCurves();
105 std::vector<double> loadACurve( std::string filename );
107 std::string _sisMixerBName;
108 std::string _sisMixerBConfFile;
109 std::string _sisMixerDName;
110 std::string _sisMixerDConfFile;
111 std::string _tuningmode;
115 std::map<unsigned short, double> _gateVoltage;
116 std::map<unsigned short, double> _drainCurrent;
124 ::std::ostream&
operator<<( ::std::ostream& os,
125 ::carma::antenna::bima::Dewar& dewar );
128 #endif // CARMA_ANTENNA_BIMA_DEWAR_H
std::ostream & operator<<(::std::ostream &os, const carma::dbms::Table &table)
Class definition for TelemetryClient on the BIMA antennas.
Class definition for Stepper Motors for BIMA systems.
FileNotFoundException class.