6 #include "carma/antenna/sza/antenna/canbus/Oscillator.h"
19 class Yig :
public Oscillator {
45 std::string boardName,
52 std::vector<carma::canbus::Message>
53 setLoFrequency(
unsigned short frequency,
bool send=
true);
58 std::vector<carma::canbus::Message>
59 downloadId(
unsigned char id,
unsigned char month,
60 unsigned char day,
unsigned char year,
bool send=
true);
65 std::vector<carma::canbus::Message>
66 getTuningTable(
bool send=
true);
71 std::vector<carma::canbus::Message>
72 downloadTuningTableToOneWire(
bool send=
true);
77 std::vector<carma::canbus::Message>
78 downloadTuningTableEntry(
unsigned short voltage,
79 unsigned short frequency,
bool send=
true);
83 std::vector<carma::canbus::Message>
84 setOperatingVoltage(
unsigned short voltage,
bool send=
true);
89 std::vector<carma::canbus::Message>
90 setLoopGainResistance(
unsigned short voltage,
bool send=
true);
95 std::vector<carma::canbus::Message>
96 setDampingResistance(
unsigned short resistance,
bool send=
true);
101 std::vector<carma::canbus::Message>
102 turnSweepOn(
bool on,
bool send=
true);
107 std::vector<carma::canbus::Message>
108 enableAutoLock(
bool enable,
bool send=
true);
113 std::vector<carma::canbus::Message>
114 setDACCalibrationCoefficient(
float coeff,
bool send=
true);
120 unsigned char lockStateToBit(
unsigned char lockState);
126 unsigned char lockBitToBit(
unsigned char lockBit);
135 std::map<carma::canbus::msgType, std::string>
136 getHalfSecMonitors()
const;
141 void processBlankingFrameMonitor1(std::vector<carma::canbus::byteType>&
147 void processBlankingFrameMonitor2(std::vector<carma::canbus::byteType>&
153 void processBlankingFrameMonitor3(std::vector<carma::canbus::byteType>&
159 void processBlankingFrameMonitor4(std::vector<carma::canbus::byteType>&
165 void processBlankingFrameMonitor5(std::vector<carma::canbus::byteType>&
171 void processBlankingFrameMonitor6(std::vector<carma::canbus::byteType>&
178 enum statusMessages {
179 STATUS_MSG_1 = 0x130,
185 virtual std::map<carma::canbus::msgType, std::string>
186 getStatusMessages()
const;
190 void processStatusMessage1(
bool isSim);
201 HOSTCMD_TEST_MODE = 0x00F,
202 HOSTCMD_SET_FREQUENCY = 0x040,
205 HOSTCMD_GET_TUNING_TABLE = 0x041
213 enum engineeringCommands
215 ENGCMD_SET_OUTPUT_FREQ = 0x300,
216 ENGCMD_UPLOAD_YIGID = 0x301,
217 ENGCMD_DOWNLOAD_TUNING = 0x302,
218 ENGCMD_DOWNLOAD_TO_ONEWIRE = 0x303,
219 ENGCMD_OPERATING_VOLTAGE = 0x304,
220 ENGCMD_LOOP_GAIN_RESISTANCE = 0x305,
221 ENGCMD_DAMPING_RESISTANCE = 0x306,
222 ENGCMD_SWEEP = 0x307,
223 ENGCMD_AUTOLOCK = 0x308,
224 ENGCMD_SET_DAC_COEFF = 0x309,
230 virtual std::map<carma::canbus::msgType, std::string>
231 getSpecificControls()
const;
237 std::string controlPrefix();
245 #endif // End #ifndef
unsigned short nodeType
Carma Node Type id type.
An instance of this class is created by AntennaMaster and passed to the constructors of other tasks...