Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Serafadam committed Sep 18, 2024
1 parent 24e8913 commit 74f6454
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions depthai_ros_driver/src/camera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,15 +288,13 @@ void Camera::setIR() {
if(camRunning && enableIR && !device->getIrDrivers().empty()) {
float laserdotIntensity = float(laserDotBrightness);
if(laserdotIntensity > 1.0) {
laserdotIntensity = laserdotIntensity / 1200.0;
laserdotIntensity = laserdotIntensity / 1200.0;
}
ROS_INFO("Setting IR laser dot intensity to: %f", laserdotIntensity);
device->setIrLaserDotProjectorIntensity(laserdotIntensity);
float floodlightIntensity = float(floodlightBrighness);
if(floodlightIntensity > 1.0) {
floodlightIntensity = floodlightIntensity / 1500.0;
floodlightIntensity = floodlightIntensity / 1500.0;
}
ROS_INFO("Setting IR floodlight intensity to: %f", floodlightIntensity);
device->setIrFloodLightIntensity(floodlightIntensity);
}
}
Expand Down

0 comments on commit 74f6454

Please sign in to comment.