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

IMU Test - Fix logic of "no_legs" parameter #73

Merged
merged 1 commit into from
Mar 15, 2024

Conversation

martinaxgloria
Copy link
Contributor

With #72, we added the possibility to parse the remoteControlBoards list within the test_imu.ini file to search for the legs. Unfortunately, I found an error in the logic implementing this functionality since:

  for (auto part : partsList)
  {
      if(part.find("leg") != std::string::npos)
      {
          strParam = "no_legs";
      }
  }

searches if the substring leg is found and, if yes, it passes to the move.sh the parameter no_legs. This is the opposite of expected behavior.

This PR should fix this error

cc @pattacini

@martinaxgloria martinaxgloria self-assigned this Mar 15, 2024
@Nicogene Nicogene merged commit 0ba9693 into robotology:devel Mar 15, 2024
3 checks passed
@martinaxgloria martinaxgloria deleted the fix branch March 15, 2024 11:32
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.

None yet

3 participants