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

fix: enable and disable functionality #196

Merged
merged 6 commits into from
Nov 17, 2022

Conversation

toshan-luktuke
Copy link
Collaborator

This Pull Request changes the enable and disable functionality. It now works by modifying the value of the SHM of the Enable wire.
For e.g.

inputs.enabled = False

The above line will set the value of the Shared Memory Object that holds the data of the Enable wire to 0
on the other hand,

inputs.enabled = True

This will set the value of the Shared Memory Object that holds the data of the Enable wire to 1

This has been tested with the following setup:
image

The output is as follows, it lets the blocks selectively enable and disable themselves, it also prevents context switching while a block waits idly.
image

@Suhas-G Suhas-G merged commit 23555a3 into JdeRobot:master Nov 17, 2022
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.

2 participants