-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get_config_msg_for_sc_v1 #41
base: ros2
Are you sure you want to change the base?
Conversation
} | ||
|
||
std::vector<uint8_t> output_vector = toDriverMessage.formVector(); | ||
switch (gui_vector.front()) { | ||
case //from gui: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
чувствую, ты не билдил))
@@ -32,6 +32,81 @@ enum ControlConstantNames { CONTROL_K1 = 0, CONTROL_K2, CONTROL_K3, CONTROL_K4, | |||
*/ | |||
enum DevNames { DEV_LIGHT = 0, DEV_TILT, DEV_GRAB, DEV_GRAB_ROTATE, DEV_ADDITIONAL_1, DEV_ADDITIONAL_2 }; | |||
|
|||
struct FromConfigMessage { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RequestConfigMessage
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
это будет то что приходит с пульта и уходит на стм
|
||
bool parseVector(std::vector<uint8_t> &input); | ||
}; | ||
struct ToConfigMessage { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
это дублирование структуры выше?
@@ -145,6 +145,9 @@ bool UartDriver::receiveData() | |||
void UartDriver::inputMessage_callback(const std_msgs::msg::UInt8MultiArray::SharedPtr msg) | |||
{ | |||
inputMessage.data.clear(); | |||
for (auto copy : msg->data) { | |||
inputMessage.data.push_back(copy); | |||
} | |||
for (int i = 0; i < ToDriverMessage::length; i++) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
вот тут ты два раза наполняешь вектор
…ig, direct. fix some code. success build
No description provided.