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

Get connectivity rpc #920

Merged
merged 8 commits into from
Nov 20, 2023
Merged

Get connectivity rpc #920

merged 8 commits into from
Nov 20, 2023

Conversation

asahtik
Copy link
Contributor

@asahtik asahtik commented Nov 8, 2023

No description provided.

Copy link
Collaborator

@moratom moratom left a comment

Choose a reason for hiding this comment

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

Apart from the naming, LGTM!

*
* @returns Vector of connection type
*/
std::vector<Connectivity> getConnectivity();
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think something like getAvailableInterfaces() would be better here.
And [Connection?]Interface for the type.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Note Available usually denotes a subset of all existing. In this case, the function should return "all" device's interfaces that it has. (the "current / what is connectable by" is explorable through device discovery)

Lets just document it accordingly and LGTM

Copy link
Collaborator

Choose a reason for hiding this comment

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

@themarpe just to clarify, do you mean leave it at getConnectivity() or changing it to getAllInterfaces() ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Perhaps getConnectionInterfaces and later on / if need be we can expose available interfaces

@asahtik asahtik merged commit ebda6a2 into develop Nov 20, 2023
23 of 30 checks passed
@asahtik asahtik deleted the getConnectivity_rpc branch November 20, 2023 12:48
jakgra pushed a commit that referenced this pull request Mar 20, 2024
* Ir brightness control based on normalized intensity, instead of current.

* Added IR intensity API.

* Update docstring. Point to correct device side commit.

* Bump core

* Use IR intensity API in cam_test.py

* Deprecated ir brightness api, fixed mono_preview_alternate_pro.py example

* cam test: use step 0.05 for both dot projector and flood light

* Update core

* synced depthai-shared with device side

* resolve shared issue.

* Bump core
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.

4 participants