Skip to content
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

Open
wants to merge 5 commits into
base: ros2
Choose a base branch
from
Open

get_config_msg_for_sc_v1 #41

wants to merge 5 commits into from

Conversation

DaShakuev
Copy link
Contributor

No description provided.

}

std::vector<uint8_t> output_vector = toDriverMessage.formVector();
switch (gui_vector.front()) {
case //from gui:
Copy link
Member

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 {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RequestConfigMessage

Copy link
Member

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 {
Copy link
Member

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++)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

вот тут ты два раза наполняешь вектор

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants