D500 temperatures as xu - #12741
Conversation
Nir-Az
left a comment
There was a problem hiding this comment.
Looks great (just a small typo in the comment)
| const uint8_t DS5_EMITTER_FREQUENCY = 0x10; | ||
| const uint8_t DS5_DEPTH_AUTO_EXPOSURE_MODE = 0x11; | ||
|
|
||
| const uint8_t DS5_HKR_PVT_TEMPERATURE = 0x15; |
There was a problem hiding this comment.
Shouldn't these be in d500-private??
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
As discussed, internally
2d75217 to
632d173
Compare
|
|
||
| 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)) |
There was a problem hiding this comment.
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)
?
|
@remibettan can you please rebase and verify why the test failed? |
Sorry my bad. |
- temperatures test relaxed: tolerance increased from 0.1 to 1.0
13a0445 to
1561616
Compare
| platform::extension_unit xu, | ||
| uint8_t id, | ||
| std::string description, | ||
| bool allow_set_while_streaming = true); |
There was a problem hiding this comment.
Not a big deal, but this is not needed, can be set to false directly in the c'tor
| const uint8_t DS5_THERMAL_COMPENSATION = 0xF; | ||
| const uint8_t DS5_EMITTER_FREQUENCY = 0x10; | ||
| const uint8_t DS5_DEPTH_AUTO_EXPOSURE_MODE = 0x11; | ||
|
|
There was a problem hiding this comment.
Redundant, only if you plan another push :)
Tracked by: RSDEV-732
REMINDER:
As we agreed, this PR should be merged after the corresponding feature is merged in the FW code