Skip to content

Commit

Permalink
Merge pull request #506 from ut-issl/feature/fix-c2a-command-sender
Browse files Browse the repository at this point in the history
Fix C2A Command sender
  • Loading branch information
200km authored Oct 7, 2023
2 parents 0b29557 + cd3e497 commit 249e701
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
.#
.# コメントは読み飛ばされる
.#
.MOBC_RT.Cmd_NOP
.MOBC_RT.NOP
wait_sec 5
MOBC_RT.Cmd_MM_START_TRANSITION 2
MOBC_RT.MM_START_TRANSITION 2
wait_sec 3
check_value # check_valueは今は使えず読み飛ばされる
let mode_id = 2 # letはいまはつかえない
AOBC_RT.Cmd_MM_START_TRANSITION {mode_id} # letを前提とした{}付きの引数があるとコマンドは送信されない
AOBC_RT.MM_START_TRANSITION {mode_id} # letを前提とした{}付きの引数があるとコマンドは送信されない
.#
2 changes: 2 additions & 0 deletions src/library/initialize/c2a_command_database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

C2aCommandInformation::C2aCommandInformation(const std::string cmd_db_line) {
if (cmd_db_line.find("*") == 0) return;
if (cmd_db_line.find(",") != 0) return;

// CSV
std::string token;
Expand All @@ -24,6 +25,7 @@ C2aCommandInformation::C2aCommandInformation(const std::string cmd_db_line) {

// Command name
command_name_ = tokens[1];
if (command_name_.empty()) return;

// Command ID
command_id_ = std::stoul(tokens[3], nullptr, 0);
Expand Down

0 comments on commit 249e701

Please sign in to comment.