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

CanBusMotionControl: do not print an error if getCurrentRangeRaw is used #663

Merged
merged 1 commit into from
Jun 22, 2020

Conversation

traversaro
Copy link
Member

While it make sense to print an error if non implemented method are called, for the case of getCurrentRangeRaw-related methods, these methods are called whenever a yarpmotorgui client connects to CanBusMotionControl, even if the current control mode is not used, so just printing a warning is probably enough.

cc @xEnVrE @randaz81

While it make sense to print an error if non implemented method are called, for the case
of getCurrentRangeRaw-related methods, these methods are called whenever a yarpmotorgui 
client connects to CanBusMotionControl, even if the current control mode is not used, so just printing 
a warning is probably enough.
@randaz81
Copy link
Member

Fine for me, as long as a false value is returned (and you did it 👍). Ideally, my plan was to have the yarpmotorgui to ask the board capabilities before asking getCurrentRangeRaw, but this was not implemented.

@pattacini
Copy link
Member

Thanks @randaz81
I think we can merge it anyway and possible next devs could take this into account.

@pattacini pattacini merged commit 2eb448f into devel Jun 22, 2020
@pattacini pattacini deleted the getcurrentrange-warning branch June 22, 2020 09:25
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.

3 participants