-
Notifications
You must be signed in to change notification settings - Fork 333
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
Gpio command controller #342
Conversation
Do you think there could be some interest in such a controller ? Currently I use it in galactic so is it interesting to adapt it for rolling ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the great proposal!
Just few comments to discuss, making this even more generic.
gpio_controllers/include/gpio_controllers/gpio_command_controller.hpp
Outdated
Show resolved
Hide resolved
I am building a system with Advantech EtherCAT modules and I want to use this controller or something similar. I think this gets a little confusing with comand_interfaces and state_interfaces. What about dividing up Digital vs Analog interfaces instead? This would allow digital interfaces to have a single bit represent their state and floats for analog ports. The digital interfaces could define their direction and enforce that or just always be treated as bidirectional and depending on the hardware behind them you either read the value of the port or the internal state of the register. The same thing would work for Analog ports. |
0ea1f49
to
db926bd
Compare
Hi, I think that splitting Digital and Analog IO would reduce the generality of the controller but I am open to discussion. |
Codecov Report
@@ Coverage Diff @@
## master #342 +/- ##
==========================================
- Coverage 35.78% 29.74% -6.04%
==========================================
Files 189 7 -182
Lines 17570 743 -16827
Branches 11592 428 -11164
==========================================
- Hits 6287 221 -6066
+ Misses 994 162 -832
+ Partials 10289 360 -9929
Flags with carried forward coverage won't be shown. Click here to find out more.
|
c3d68a9
to
2a0016c
Compare
72b56d7
to
882c936
Compare
Let's see what the CI is telling us about compatibility now. |
Yes, I would like to take this over if @mcbed is okay with it. |
Superseded by #1251 |
Controller to send commands to gpio interfaces allowing specific command interfaces for each gpio.