-
Notifications
You must be signed in to change notification settings - Fork 120
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 for OAK-D Pro #287
Conversation
hello! what is the status for OAK-D PRO support in C++? i went ahead on branch device.irWriteReg(0x2, 0x1);
device.irWriteReg(0x3, 0x0);
// etc.. as per the python example ... and it compiles and runs but it's not clear what the registers do, and hard to know what toggles are available. we have an OAK-D (non-pro) that works fine so we can compare/confirm with the fresh OAK-D PRO. running on Apple M1 Silicon, getting the python stuff to work natively is a big pain (and we do not want to run rosetta and/or dual homebrew setups); and anyhow our target language is C++ and compiling and linking the libs into our software is quick and seamless (works superb with the OAK-D). so we'd like to be able to confirm our understanding of the PRO features without needing to run python. a C++ example of the different registers would be great! |
I should have mentioned here as well, a simpler API was added on the branch The projectors are disabled by default, configured to align with camera exposure (by strobe), and this API is available: /**
* Sets the brightness of the IR Laser Dot Projector.
* Theoretical maximum 1500mA, but recommended to not exceed 765mA.
*
* @param mA Current in mA that will determine brightness, 0 or negative to turn off
* @param mask Optional mask to modify only Left (0x1) or Right (0x2) sides on OAK-D-Pro-W-DEV
*/
void setIrLaserDotProjectorBrightness(float mA, int mask = -1);
/**
* Sets the brightness of the IR Flood Light. Maximum 1500mA.
*
* @param mA Current in mA that will determine brightness, 0 or negative to turn off
* @param mask Optional mask to modify only Left (0x1) or Right (0x2) sides on OAK-D-Pro-W-DEV
*/
void setIrFloodLightBrightness(float mA, int mask = -1); Example for configuring: device.setIrLaserDotProjectorBrightness(100); // mA
device.setIrFloodLightBrightness(250); // mA |
ah! that's nice. however checking out
|
@artificiel Likely the
|
ah the submodule... now it works, thanks! |
…Pro-PoE initial flashing)" This reverts commit 96691b9.
…urn if setIrDot/Flood succeeded
@alex-luxonis Is there support for for the IR settings as per the table luxonis/depthai-hardware#114? |
Edit: simplified API added now:
Example on how the duty-cycle limitation is applied: