10 #ifndef CARMA_DOWNCONVERTER_LOMONITOR_H
11 #define CARMA_DOWNCONVERTER_LOMONITOR_H
30 class StateMonitorPointEnum;
34 namespace downconverter {
53 carma::monitor::StateMonitorPointEnum & state,
54 carma::monitor::LoMonitor & lomon,
55 carma::monitor::Xac & xac,
56 bool wideband =
false );
70 std::map<carma::canbus::msgType, std::string>
90 std::vector<carma::canbus::byteType> &data,
bool sim);
123 void initializePowerMeter();
129 carma::monitor::StateMonitorPointEnum * state_;
130 carma::monitor::LoMonitor *mon_;
131 carma::monitor::Xac *xacMon_;
132 log4cpp::Category &log_;
143 void processBlankingFramePacket1(
144 std::vector<carma::canbus::byteType> &data);
145 void processBlankingFramePacket2(
146 std::vector<carma::canbus::byteType> &data);
147 void processLoFrequencyPacket(
148 std::vector<carma::canbus::byteType> &data,
int loId);
149 void processLoStatusPacket(
150 std::vector<carma::canbus::byteType> &data,
int loId);
160 const bool wideband_;
LoMonitor Device class implementation.
Class to encapsulate a CAN message.
std::map< carma::canbus::msgType, std::string > getHalfSecMonitors() const
Retrieve a map of this devices half second monitor points.
LoMonitor(carma::canbus::nodeType node, carma::canbus::CanOutput &io, carma::monitor::StateMonitorPointEnum &state, carma::monitor::LoMonitor &lomon, carma::monitor::Xac &xac, bool wideband=false)
Constructor Creates an LoMonitor device with the given node id.
XacDevice canbus::device class implementation.
unsigned short apiType
Carma API id type.
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.
static carma::canbus::apiType getApiId()
Staticly retrieve the API Id.
void processMsg(carma::canbus::msgType mid, std::vector< carma::canbus::byteType > &data, bool sim)
Process a CAN message.
void updateFrameData()
Update data on a frame time scale This routine is called automatically by carma::canbus::Master every...
carma::canbus::devices::XacDevice class declaration.
virtual ~LoMonitor()
Destructor.
carma::canbus::Message simulateMsg(carma::canbus::msgType mid)
Produce a simulated CAN message for a given msgType.
unsigned short msgType
Carma Message id type.