add tests for control protocol and angle representation parsing
This commit is contained in:
@@ -30,10 +30,8 @@ std::optional<ControlProtoParser::parse_result_t> ControlProtoParser::parse(std:
|
||||
ret = ControlProtoParser::parse_result_t{command, {}};
|
||||
}
|
||||
} else {
|
||||
if (ControlProtoParser::_userFunc.find(std::string_view(command.begin(), found.begin())) !=
|
||||
ControlProtoParser::_userFunc.end()) {
|
||||
ret = ControlProtoParser::parse_result_t{command, {}};
|
||||
|
||||
ret = ControlProtoParser::parse_result_t{{command.begin(), found.begin()}, {}};
|
||||
if (ControlProtoParser::_userFunc.find(ret->cmd) != ControlProtoParser::_userFunc.end()) {
|
||||
auto args = command | std::views::drop(std::distance(command.begin(), found.end())) |
|
||||
std::views::split(CONTROL_PROTO_ARG_DELIM_SEQ);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user