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

included setRS485 method in port_handler_linux.h #362

Open
wants to merge 1 commit into
base: kinetic-devel
Choose a base branch
from

Conversation

sonelu
Copy link

@sonelu sonelu commented Nov 15, 2019

Added method setRS485 in the PortHandlerLinux in order to have the ability to configure the port with RS485 protocol. Since socket_fd_ is private, the controller (or robot using the port) does not have access to the port socket to perform the configuration.

Code was updated only c++ section and ros directories.

Caller of setRS485() needs to provide an instantiated struct serial_rs485 with the desired configuration. Therefore it can be used to set or reset the RS845 configuration of the port. RTS behaviour and delays can also be configured using this parameter.

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.

1 participant