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

Implement issue https://github.com/vanadiumlabs/arbotix_ros/issues/24: #25

Merged
merged 2 commits into from
Aug 21, 2014

Conversation

corot
Copy link
Contributor

@corot corot commented Aug 17, 2014

Allow 16 bit values on arbotix_msgs/Analog messages, but assume 8 bits by default. So changes should be transparent for current users except for the extra size of message value.

Allow 16 bit values on arbotix_msgs/Analog messages, but assume 8 bits
by default
@@ -128,7 +128,8 @@ class ArbotixROS(ArbotiX):
pin = rospy.get_param('~'+v+'/'+name+'/pin',1)
value = rospy.get_param('~'+v+'/'+name+'/value',0)
rate = rospy.get_param('~'+v+'/'+name+'/rate',10)
self.io[name] = t(name, pin, value, rate, self)
leng = rospy.get_param('~'+v+'/'+name+'/leng',1) # just for analog sensors
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Parameter names are rarely shortened, so this should really be spelled out fully as "length". (the name on the server that is, not the python variable name)

@corot
Copy link
Contributor Author

corot commented Aug 18, 2014

👍

@corot
Copy link
Contributor Author

corot commented Aug 21, 2014

Any problem with the PR? Should I change something else?

mikeferguson added a commit that referenced this pull request Aug 21, 2014
@mikeferguson mikeferguson merged commit 4b67379 into vanadiumlabs:indigo-devel Aug 21, 2014
@mikeferguson
Copy link
Member

Nope. I just forgot to come back and merge it.

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

2 participants