Skip to content

Commit

Permalink
enable AUTO for D555e
Browse files Browse the repository at this point in the history
  • Loading branch information
remibettan committed Mar 5, 2024
1 parent b14d8bd commit 582a6aa
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/ds/d500/d500-color.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,19 @@ namespace librealsense

_ds_color_common->register_color_options();

std::map< float, std::string > description_per_value = std::map<float, std::string>{
{ 0.f, "Disabled"},
{ 1.f, "50Hz" },
{ 2.f, "60Hz" } };

if (val_in_range(_pid, { ds::D555E_PID }))
{
description_per_value.insert(std::make_pair(3.f, "AUTO"));
}

color_ep.register_option(RS2_OPTION_POWER_LINE_FREQUENCY,
std::make_shared<uvc_pu_option>(raw_color_ep, RS2_OPTION_POWER_LINE_FREQUENCY,
std::map<float, std::string>{ { 0.f, "Disabled"},
{ 1.f, "50Hz" },
{ 2.f, "60Hz" } }));
description_per_value));

color_ep.register_pu(RS2_OPTION_AUTO_EXPOSURE_PRIORITY);

Expand Down

0 comments on commit 582a6aa

Please sign in to comment.