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

Turtlebot3 setup motors #149

Merged
merged 4 commits into from
Nov 15, 2018
Merged

Conversation

KurtE
Copy link
Contributor

@KurtE KurtE commented Nov 10, 2018

Try to make the code a little more robust to handle when the servos are somewhat setup.

So in different places the code knows which servo id it is looking for and if found it tries to use that one. Where before if you had servo ID #1 and #2 and was trying to setup left, it would grab the last servo found #2 and then set it's id to #1...

Also used ping to know if the specific servo was found that is expected for the test servo cases and only does this at baud of 1000000 as that is what turtle expects

Also defined some of the methods and the like in the keywords.txt, so they show up as Arduino things...

Try to make the code a little more robust to handle when the servos are somewhat setup.

So in different places the code knows which servo id it is looking for and if found it tries to use that one.  Where before if you had servo ID ROBOTIS-GIT#1 and ROBOTIS-GIT#2 and was trying to setup left, it would grab the last servo found ROBOTIS-GIT#2 and then set it's id to ROBOTIS-GIT#1...

Also used ping to know if the specific servo was found that is expected for the test servo cases and only does this at baud of 1000000 as that is what turtle expects
Make it work more with Arduino.  So most of the dynamixel sdk methods show up as known Arduino methods and also added a few keywords
Somehow lost the line, that reset the baud rate back down to 57600 if the ping found the servo at that speed.

Also made the sketch work on OpenCM9.04 as well.  So if one needed to do it and did not want to get to their OpenCR board.
@routiful routiful merged commit 0ec0f13 into ROBOTIS-GIT:develop Nov 15, 2018
@KurtE KurtE deleted the turtlebot3_setup_motors branch November 15, 2018 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants