Skip to content

D500 temperatures as xu - #12741

Merged
Nir-Az merged 15 commits into
realsenseai:developmentfrom
remibettan:d500-temperatures-as-xu
Apr 4, 2024
Merged

D500 temperatures as xu#12741
Nir-Az merged 15 commits into
realsenseai:developmentfrom
remibettan:d500-temperatures-as-xu

Conversation

@remibettan

@remibettan remibettan commented Mar 11, 2024

Copy link
Copy Markdown
Contributor

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
Comment thread src/ds/d500/d500-options.cpp Outdated
Comment thread src/option.h
Comment thread src/platform/uvc-option.h
Comment thread src/ds/d500/d500-options.cpp Outdated
Comment thread unit-tests/live/d500/test-temperatures-xu-vs-hwmc.py Outdated
Comment thread unit-tests/live/d500/test-temperatures-xu-vs-hwmc.py Outdated
@remibettan
remibettan requested a review from Nir-Az March 11, 2024 14:07

@Nir-Az Nir-Az left a comment

Copy link
Copy Markdown
Collaborator

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
Comment thread src/ds/ds-private.h Outdated
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
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

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.

@Nir-Az Nir-Az left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

As discussed, internally

@remibettan
remibettan force-pushed the d500-temperatures-as-xu branch from 2d75217 to 632d173 Compare April 1, 2024 13:22
@remibettan
remibettan requested a review from Nir-Az April 2, 2024 13:05

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
Copy Markdown
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

Nir-Az commented Apr 2, 2024

Copy link
Copy Markdown
Collaborator

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

@Nir-Az

Nir-Az commented Apr 2, 2024

Copy link
Copy Markdown
Collaborator

@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. :)

@remibettan
remibettan force-pushed the d500-temperatures-as-xu branch from 13a0445 to 1561616 Compare April 4, 2024 06:37
Comment thread src/ds/d500/d500-options.h Outdated
platform::extension_unit xu,
uint8_t id,
std::string description,
bool allow_set_while_streaming = true);

Copy link
Copy Markdown
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

Comment thread src/ds/ds-private.h Outdated
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
Copy Markdown
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 realsenseai:development Apr 4, 2024
@remibettan
remibettan deleted the d500-temperatures-as-xu branch July 29, 2025 14:07
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