Skip to content

Commit

Permalink
PR #12658 from noacoohen: Add Auto Exp/Gain Limit feature to all D400…
Browse files Browse the repository at this point in the history
… except D415+D457
  • Loading branch information
OhadMeir authored Feb 13, 2024
2 parents faaab32 + c8fd7d2 commit 0d4a185
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 17 deletions.
10 changes: 10 additions & 0 deletions src/ds/d400/d400-device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
#include <regex>
#include <iterator>

#include <src/ds/features/auto-exposure-limit-feature.h>
#include <src/ds/features/gain-limit-feature.h>

#ifdef HWM_OVER_XU
constexpr bool hw_mon_over_xu = true;
#else
Expand Down Expand Up @@ -965,6 +968,13 @@ namespace librealsense
register_feature( std::make_shared< remove_ir_pattern_feature >() );

register_feature( std::make_shared< auto_exposure_roi_feature >( get_depth_sensor(), _hw_monitor ) );

if( pid != ds::RS457_PID && pid != ds::RS415_PID && fw_ver >= firmware_version( 5, 12, 10, 11 ) )
{
register_feature(
std::make_shared< auto_exposure_limit_feature >( get_depth_sensor(), d400_device::_hw_monitor ) );
register_feature( std::make_shared< gain_limit_feature >( get_depth_sensor(), d400_device::_hw_monitor ) );
}
}

void d400_device::register_metadata(const synthetic_sensor &depth_sensor, const firmware_version& hdr_firmware_version) const
Expand Down
17 changes: 0 additions & 17 deletions src/ds/d400/d400-factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -670,14 +670,6 @@ namespace librealsense
dev_info, d400_device::_hw_monitor, get_firmware_logs_command(), get_flash_logs_command() )
{
check_and_restore_rgb_stream_extrinsic();
if( _fw_version >= firmware_version( 5, 12, 10, 11 ) )
{
register_feature(
std::make_shared< auto_exposure_limit_feature >( get_depth_sensor(), d400_device::_hw_monitor ) );
register_feature(
std::make_shared< gain_limit_feature >( get_depth_sensor(), d400_device::_hw_monitor ) );

}
}


Expand Down Expand Up @@ -1012,15 +1004,6 @@ namespace librealsense
dev_info, d400_device::_hw_monitor, get_firmware_logs_command(), get_flash_logs_command() )
, d400_thermal_tracking( d400_device::_thermal_monitor )
{
if( _fw_version >= firmware_version( 5, 12, 10, 11 ) )
{
register_feature(
std::make_shared< auto_exposure_limit_feature >( get_depth_sensor(), d400_device::_hw_monitor ) );
register_feature(
std::make_shared< gain_limit_feature >( get_depth_sensor(), d400_device::_hw_monitor ) );


}
}

std::shared_ptr<matcher> create_matcher(const frame_holder& frame) const override;
Expand Down

0 comments on commit 0d4a185

Please sign in to comment.