Skip to content
Prev Previous commit
Next Next commit
Deprecated ir brightness api, fixed spatial_calculator_multi_roi exam…
…ple.
  • Loading branch information
zrezke committed Nov 13, 2023
commit 444a1c0d6399947d323a1f43438061485ab77173
4 changes: 2 additions & 2 deletions examples/SpatialDetection/spatial_calculator_multi_roi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ int main() {

// Connect to device and start pipeline
dai::Device device(pipeline);
device.setIrLaserDotProjectorBrightness(0.7f);
device.setIrLaserDotProjectorIntensity(0.7f);

// Output queue will be used to get the depth frames from the outputs defined above
auto depthQueue = device.getOutputQueue("depth", 4, false);
Expand Down Expand Up @@ -106,4 +106,4 @@ int main() {
}
}
return 0;
}
}
4 changes: 2 additions & 2 deletions include/depthai/device/DeviceBase.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ class DeviceBase {
* @param mask Optional mask to modify only Left (0x1) or Right (0x2) sides on OAK-D-Pro-W-DEV
* @returns True on success, false if not found or other failure
*/
bool setIrLaserDotProjectorBrightness(float mA, int mask = -1);
[[deprecated("Use setIrLaserDotProjectorIntensity(float intensity) instead.")]] bool setIrLaserDotProjectorBrightness(float mA, int mask = -1);

/**
* Sets the brightness of the IR Flood Light. Limits: up to 1500mA at 30% duty cycle.
Expand All @@ -505,7 +505,7 @@ class DeviceBase {
* @param mask Optional mask to modify only Left (0x1) or Right (0x2) sides on OAK-D-Pro-W-DEV
* @returns True on success, false if not found or other failure
*/
bool setIrFloodLightBrightness(float mA, int mask = -1);
[[deprecated("Use setIrFloodLightIntensity(float intensity) instead.")]] bool setIrFloodLightBrightness(float mA, int mask = -1);

/**
* Sets the intensity of the IR Laser Dot Projector. Limits: up to 765mA at 30% frame time duty cycle when exposure time is longer than 30% frame time.
Expand Down