Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

D500 temperatures as xu #12741

Merged
merged 15 commits into from
Apr 4, 2024

Conversation

remibettan
Copy link
Contributor

@remibettan remibettan commented Mar 11, 2024

Tracked by: RSDEV-732
REMINDER:
As we agreed, this PR should be merged after the corresponding feature is merged in the FW code

@remibettan remibettan requested a review from Nir-Az March 11, 2024 09:50
src/option.h Show resolved Hide resolved
@remibettan remibettan requested a review from Nir-Az March 11, 2024 14:07
Copy link
Collaborator

@Nir-Az Nir-Az left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great (just a small typo in the comment)

@remibettan remibettan requested a review from Nir-Az March 12, 2024 07:49
@@ -60,6 +60,10 @@ namespace librealsense
const uint8_t DS5_THERMAL_COMPENSATION = 0xF;
const uint8_t DS5_EMITTER_FREQUENCY = 0x10;
const uint8_t DS5_DEPTH_AUTO_EXPOSURE_MODE = 0x11;

const uint8_t DS5_HKR_PVT_TEMPERATURE = 0x15;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't these be in d500-private??

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds like it, @remibettan ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we agreed this is ok to for that to remain here, so that we do not override the value here for some other common command

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like it. The code dependencies should reflect actual products. D400 shouldn't know about D500 etc.
Common commands need to take into account all products -- "ensuring it" by putting all product codes here is not right.

Copy link
Collaborator

@Nir-Az Nir-Az left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed, internally


test.check(depth_sensor.supports(rs.option.soc_pvt_temperature))
test.check(depth_sensor.supports(rs.option.ohm_temperature))
test.check(depth_sensor.supports(rs.option.projector_temperature))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This and the get will fail on D555e.
Maybe we should change to:

proj_temp = None
if depth_sensor.supports(rs.option.projector_temperature):
  proj_temp = depth_sensor.get_option(rs.option.projector_temperature)

?

@Nir-Az
Copy link
Collaborator

Nir-Az commented Apr 2, 2024

@remibettan can you please rebase and verify why the test failed?

@Nir-Az
Copy link
Collaborator

Nir-Az commented Apr 2, 2024

@remibettan can you verify why the test failed?

Sorry my bad.
Currently we cannot have D500 tests in this branch as our CI does not support it currently.
Let's move the test to the relevant branch only. :)

platform::extension_unit xu,
uint8_t id,
std::string description,
bool allow_set_while_streaming = true);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a big deal, but this is not needed, can be set to false directly in the c'tor

@@ -60,6 +60,7 @@ namespace librealsense
const uint8_t DS5_THERMAL_COMPENSATION = 0xF;
const uint8_t DS5_EMITTER_FREQUENCY = 0x10;
const uint8_t DS5_DEPTH_AUTO_EXPOSURE_MODE = 0x11;

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redundant, only if you plan another push :)

@Nir-Az Nir-Az merged commit 3053e9f into IntelRealSense:development Apr 4, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants