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

Support Technic Hub (bb0961c01) #6

Closed
wants to merge 1 commit into from

Conversation

alwayslinux2
Copy link

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.
@alwayslinux2
Copy link
Author

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.

@corneliusmunz
Copy link
Owner

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

@corneliusmunz corneliusmunz added the enhancement New feature or request label Dec 26, 2019
@GianCann
Copy link

There is some news about this?

@marcrupprath
Copy link

Hallo, the Technic Hub is still supported, because it use the same protocoll ;-)
Tested 4 Ports of "myBoostHub", works fine.

@marcrupprath
Copy link

Another question:
Do we realy need more than the base class ?
Because all of them uses same feature set, as discribed in LEGO wireless protocol ?!

At least i would like to have al changes implemented in base class first.
The availability of features depends more on connected devices, not on the hub (as i know so far).

@corneliusmunz
Copy link
Owner

@marcrupprath: You are right. The base class (Lpf2Hub) with the generic functions will work for the control+ hubs but the BoostHub class which inherits from the Lpf2Hub adds some basic movements specific for the Boost models (movements, turns, ...) and that movements use the combined AB port which is not existent in the control+ hubs. I think about the PR to have the base motor functions in the base class and only the movements without the combined port in the BoostHub class

Copy link
Owner

@corneliusmunz corneliusmunz left a 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

@marcrupprath
Copy link

Hello Cornelius and Jeremy.
That is what i am talking about: Jeremy has implmented all those things, that i have tested with bosthub class with technic hub.

It works , ecept you have to be a little build carefull about powerup/powerdown ramps.
It seems that not all combinations worl properly:
Example with L Motor on technic hub: Runtime 20 sec, works fine if Ramping time is not above 1 sec.

Technic Hubs supports:

  • Speedramps
  • Positioning to Angle (as shown in Rally car steering , too)
  • Running for specific time.

@corneliusmunz corneliusmunz mentioned this pull request Jul 9, 2020
@corneliusmunz
Copy link
Owner

will close the PR. Support for ControlPlus (Technic) hub is available since release 0.7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants