Skip to content

Commit

Permalink
PR #12582 from noacoohen: Auto Exp/Gain Limit feature addition to D43…
Browse files Browse the repository at this point in the history
…5i and D455
  • Loading branch information
OhadMeir committed Feb 1, 2024
2 parents 559dacb + 38363af commit 52fc021
Show file tree
Hide file tree
Showing 11 changed files with 608 additions and 208 deletions.
4 changes: 4 additions & 0 deletions src/ds/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,8 @@ target_sources(${LRS_TARGET}
"${CMAKE_CURRENT_LIST_DIR}/features/auto-exposure-roi-feature.cpp"
"${CMAKE_CURRENT_LIST_DIR}/features/remove-ir-pattern-feature.h"
"${CMAKE_CURRENT_LIST_DIR}/features/remove-ir-pattern-feature.cpp"
"${CMAKE_CURRENT_LIST_DIR}/features/auto-exposure-limit-feature.h"
"${CMAKE_CURRENT_LIST_DIR}/features/auto-exposure-limit-feature.cpp"
"${CMAKE_CURRENT_LIST_DIR}/features/gain-limit-feature.h"
"${CMAKE_CURRENT_LIST_DIR}/features/gain-limit-feature.cpp"
)
21 changes: 20 additions & 1 deletion src/ds/d400/d400-factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@

#include <rsutils/string/from.h>


#include <src/ds/features/auto-exposure-limit-feature.h>
#include <src/ds/features/gain-limit-feature.h>
namespace librealsense
{
// PSR
Expand Down Expand Up @@ -669,8 +670,17 @@ 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 ) );

}
}


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

std::vector<tagged_profile> get_profiles_tags() const override
Expand Down Expand Up @@ -1046,6 +1056,15 @@ 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
Loading

0 comments on commit 52fc021

Please sign in to comment.