Skip to content

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.

чувствую, ты не билдил))

*/
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.

это дублирование структуры выше?

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.

3 participants