Skip to content

Enable the use of an already connected device in ipymovehub#42

Merged
HaudinFlorence merged 3 commits intoQuantStack:mainfrom
HaudinFlorence:enable_the_use_of_an_already_connected_device_in_ipymovehub
Apr 9, 2025
Merged

Enable the use of an already connected device in ipymovehub#42
HaudinFlorence merged 3 commits intoQuantStack:mainfrom
HaudinFlorence:enable_the_use_of_an_already_connected_device_in_ipymovehub

Conversation

@HaudinFlorence
Copy link
Copy Markdown
Member

@HaudinFlorence HaudinFlorence commented Mar 31, 2025

Case where devices are already connected

Screencast.From.2025-03-31.19-13-29.mp4

Case where no device is a connected

Screencast.From.2025-03-31.19-14-28.mp4

@HaudinFlorence HaudinFlorence force-pushed the enable_the_use_of_an_already_connected_device_in_ipymovehub branch from 0f47590 to d45fd39 Compare March 31, 2025 21:21
…e of already connected devices or not.

Add an identifier attribute to the connect method in movehub.py.
@HaudinFlorence HaudinFlorence force-pushed the enable_the_use_of_an_already_connected_device_in_ipymovehub branch from d45fd39 to 224680b Compare March 31, 2025 21:35
break;
case 'led':
this.movehub.led.call(this.movehub, args);
this.movehub.led.apply(this.movehub, args);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this working? Unless args is an array, I think .call instead of .apply is correct, here, like it was before. Did you need to change it?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the lego-boost-browser librairy, it was using apply. I tried to change to call following the recommendations of the linter, but then the commands to change the led or move the robot were not effective (no error message but no action on the robot apart from switching of the led when trying to sweep all colors). So I went back on using apply.

Copy link
Copy Markdown
Member

@afshin afshin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@HaudinFlorence
Copy link
Copy Markdown
Member Author

@afshin Thanks for approving the PR

@HaudinFlorence HaudinFlorence merged commit d2cbb97 into QuantStack:main Apr 9, 2025
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