-
Notifications
You must be signed in to change notification settings - Fork 131
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
Get connectivity rpc #920
Conversation
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.
Apart from the naming, LGTM!
* | ||
* @returns Vector of connection type | ||
*/ | ||
std::vector<Connectivity> getConnectivity(); |
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.
I think something like getAvailableInterfaces()
would be better here.
And [Connection?]Interface
for the type.
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.
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
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.
@themarpe just to clarify, do you mean leave it at getConnectivity()
or changing it to getAllInterfaces()
?
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.
Perhaps getConnectionInterfaces
and later on / if need be we can expose available interfaces
* 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
No description provided.