-
Notifications
You must be signed in to change notification settings - Fork 34
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
Support Technic Hub (bb0961c01) #6
Conversation
Technic hub has 4 ports (instead of 2 like the powered up hub), and does not understand port AB, so anything calling for AB has to be two commands, one for port A and one for port B.
Technic hub has 4 ports (instead of 2 like the powered up hub), and does not understand port AB, so anything calling for AB has to be two commands, one for port A and one for port B. |
Hi @alwayslinux2 ! Thanks very much for your pull request. I will check it hopefully today. The request seems reasonable. Maybe i have some comments regarding the boost related functions and the naming but i will directly reply with comments in the code. Unfortunately i have no control+ hub at the moment to test it with a real device but i will review your code |
There is some news about this? |
Hallo, the Technic Hub is still supported, because it use the same protocoll ;-) |
Another question: At least i would like to have al changes implemented in base class first. |
@marcrupprath: You are right. The base class ( |
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.
@alwayslinux2 Hi Jeremy! Sorry for the late review of your PR. I struggle a littlebit with your additions/changes because i think i should refactor the lib in a way that the basic motor commands are in a base class which inherits from lpf2hub and can then be used by the boosthub and controlPlus hub controllers. In your supposed changes many of the code parts are copied and only the parts which uses the combined Port assignments AB or some default assignments to Port AB are really changed. So i will close the PR and do the refactoring like described above. I will mention your input as a contribution to that changes because i like your contribution which brings the library forward and gives support to additional hubs
Hello Cornelius and Jeremy. It works , ecept you have to be a little build carefull about powerup/powerdown ramps. Technic Hubs supports:
|
will close the PR. Support for ControlPlus (Technic) hub is available since release 0.7.0 |
Technic hub has 4 ports (instead of 2 like the powered up hub), and does not understand port AB, so anything calling for AB has to be two commands, one for port A and one for port B.