11 #ifndef CARMA_DOWNCONVERTER_DOWNCONVERTER_H
12 #define CARMA_DOWNCONVERTER_DOWNCONVERTER_H
15 #include "carma/monitor/WbdcSubsystem.h"
19 #include <tao/Basic_Types.h>
27 namespace downconverter {
47 carma::monitor::WbdcSubsystem & wbdcSubsys );
61 std::map<carma::canbus::msgType, std::string>
135 void setPsysPreset();
136 void setPsys(::CORBA::Float psys);
137 void setPsysAtten(::CORBA::Float atten);
138 void setIfOutPreset();
139 void setIfOut(::CORBA::Float ifout);
140 void setIfOutAtten(::CORBA::Float atten);
141 void enableRfInputAmp(::CORBA::Boolean enable);
142 void enableIfOutAlc(::CORBA::Boolean enable);
146 checkIfOutputPower(::CORBA::Float power, ::CORBA::Float delta);
176 const unsigned int inputNo_;
177 const unsigned int bandNo_;
178 const std::string stringId_;
179 carma::monitor::WbdcSubsystem::Input * mon_;
182 double ifOutputPower_;
184 bool commandLoggingEnabled_;
void disableCommandLogging()
Disable command logging.
virtual ~Downconverter()
Destructor.
Class to encapsulate a CAN message.
void updateFrameData()
Update data on a frame time scale This routine is called automatically by carma::canbus::Master every...
void processMsg(carma::canbus::msgType mid, carma::canbus::DataVector &data, bool sim)
Process a CAN message.
XacDevice canbus::device class implementation.
unsigned short apiType
Carma API id type.
static carma::canbus::apiType getApiId()
Staticly retrieve the API Id.
std::map< carma::canbus::msgType, std::string > getSlowMonitors() const
Retrieve a map of this devices slow monitor points.
unsigned short nodeType
Carma Node Type id type.
void enableCommandLogging()
Enable command logging.
std::map< carma::canbus::msgType, std::string > getHalfSecMonitors() const
Retrieve a map of this devices half second monitor points.
::std::vector< ::carma::canbus::byteType > DataVector
Alias for CAN data.
Downconverter Device class implementation.
carma::canbus::devices::XacDevice class declaration.
carma::canbus::Message simulateMsg(carma::canbus::msgType mid)
Produce a simulated CAN message for a given msgType.
unsigned short msgType
Carma Message id type.
Downconverter(carma::canbus::nodeType node, carma::canbus::CanOutput &io, carma::monitor::WbdcSubsystem &wbdcSubsys)
Constructor.
static carma::canbus::nodeType calculateNodeId(short input, short band)
Helper routine to calculate a downconverter node id from an input and band id.