-
Notifications
You must be signed in to change notification settings - Fork 307
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
controller_manager: Fix doSwitch execution point - jade #210
Conversation
8e49e46
to
b7eeceb
Compare
@ipa-mdl ptal. |
Notice that this PR is deprecating |
+1 |
This PR rebased #218, this looks wrong. I would suggest to supersede #210 and #218 by a PR that syncs all changes from indigo-devel to jade-devel (jade-devel...indigo-devel), and e6a109c should be applied on top of it. As an alternative the commits can be cherry-picked in the right order. |
I have tested the indigo version with a |
I have applied the changes in |
The doSwitch method needs to be executed in the update() method, that is, in the real-time path, which is where controller switching actually takes place. It was previously done in the switchController callback, which is non real-time. In this method controller switching is scheduled, but not actually executed. This changeset fixes a bug in which hardware interface modes could switch before controllers, leading to undefined behavior.
b7eeceb
to
ad68d85
Compare
controller_manager: Fix doSwitch execution point - jade
Same as #209, plus an extra commit that makes
canSwitch(...)
non-const