@@ -122,7 +122,7 @@ double Driver::radPerSecToRpm() const
122
122
void Driver::sendId (const uint32_t id)
123
123
{
124
124
can_msgs::msg::Frame msg = getMsg (id);
125
- interface_->send (msg);
125
+ interface_->queue (msg);
126
126
}
127
127
128
128
void Driver::sendUint8 (const uint32_t id, const uint8_t value)
@@ -133,7 +133,7 @@ void Driver::sendUint8(const uint32_t id, const uint8_t value)
133
133
std::memcpy (data, &value, sizeof (uint8_t ));
134
134
std::copy (std::begin (data), std::end (data), std::begin (msg.data ));
135
135
136
- interface_->send (msg);
136
+ interface_->queue (msg);
137
137
}
138
138
139
139
void Driver::sendUint16 (const uint32_t id, const uint16_t value)
@@ -144,7 +144,7 @@ void Driver::sendUint16(const uint32_t id, const uint16_t value)
144
144
std::memcpy (data, &value, sizeof (uint16_t ));
145
145
std::copy (std::begin (data), std::end (data), std::begin (msg.data ));
146
146
147
- interface_->send (msg);
147
+ interface_->queue (msg);
148
148
}
149
149
150
150
void Driver::sendFixed8x8 (const uint32_t id, const float value)
@@ -157,7 +157,7 @@ void Driver::sendFixed8x8(const uint32_t id, const float value)
157
157
std::memcpy (data, &output_value, sizeof (int16_t ));
158
158
std::copy (std::begin (data), std::end (data), std::begin (msg.data ));
159
159
160
- interface_->send (msg);
160
+ interface_->queue (msg);
161
161
}
162
162
163
163
void Driver::sendFixed16x16 (const uint32_t id, const double value)
@@ -170,7 +170,7 @@ void Driver::sendFixed16x16(const uint32_t id, const double value)
170
170
std::memcpy (data, &output_value, sizeof (int32_t ));
171
171
std::copy (std::begin (data), std::end (data), std::begin (msg.data ));
172
172
173
- interface_->send (msg);
173
+ interface_->queue (msg);
174
174
}
175
175
176
176
can_msgs::msg::Frame Driver::getMsg (const uint32_t id)
0 commit comments