90 can_msgs::Frame frame;
96 uint8_t *ptr = (uint8_t*)frame.data.elems;
100 for(std::map<std::string, NewEagle::DbcSignal>::iterator it =
_signals.begin(); it !=
_signals.end(); it++) {
101 Pack(ptr, it->second);
111 for(std::map<std::string, NewEagle::DbcSignal>::iterator it =
_signals.begin(); it !=
_signals.end(); it++) {
113 Pack(ptr, it->second);
116 muxSwitch = &it->second;
117 Pack(ptr, it->second);
121 for(std::map<std::string, NewEagle::DbcSignal>::iterator it =
_signals.begin(); it !=
_signals.end(); it++) {
123 if (muxSwitch->
GetResult() == it->second.GetMultiplexerSwitch()) {
124 Pack(ptr, it->second);
136 uint8_t *ptr = (uint8_t*)msg->data.elems;
139 for(std::map<std::string, NewEagle::DbcSignal>::iterator it =
_signals.begin(); it !=
_signals.end(); it++) {
140 double res =
Unpack(ptr, it->second);
141 it->second.SetResult(res);
151 for(std::map<std::string, NewEagle::DbcSignal>::iterator it =
_signals.begin(); it !=
_signals.end(); it++) {
153 double res =
Unpack(ptr, it->second);
154 it->second.SetResult(res);
157 muxSwitch = &it->second;
158 double res =
Unpack(ptr, it->second);
159 it->second.SetResult(res);
163 for(std::map<std::string, NewEagle::DbcSignal>::iterator it =
_signals.begin(); it !=
_signals.end(); it++) {
165 if (muxSwitch->
GetResult() == it->second.GetMultiplexerSwitch()) {
166 double res =
Unpack(ptr, it->second);
167 it->second.SetResult(res);
178 _signals.insert(std::pair<std::string, NewEagle::DbcSignal>(signalName, signal));
183 std::map<std::string, NewEagle::DbcSignal>::iterator it;
219 for(std::map<std::string, NewEagle::DbcSignal>::iterator it =
_signals.begin(); it !=
_signals.end(); it++)
NewEagle::DbcSignal * GetSignal(std::string signalName)
static double Unpack(uint8_t *data, const NewEagle::DbcSignal &signal)
std::map< std::string, NewEagle::DbcSignal > _signals
void SetFrame(const can_msgs::Frame::ConstPtr &msg)
void SetRawText(std::string rawText)
NewEagle::DbcMessageComment _comment
uint32_t GetSignalCount()
can_msgs::Frame GetFrame()
static void Pack(uint8_t *data, const NewEagle::DbcSignal &signal)
std::map< std::string, NewEagle::DbcSignal > * GetSignals()
void AddSignal(std::string signalName, NewEagle::DbcSignal signal)
bool AnyMultiplexedSignals()
void SetComment(NewEagle::DbcMessageComment comment)