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

Fix Emitter_On option #6064

Merged
merged 1 commit into from
Mar 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/librealsense2/h/rs_option.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ extern "C" {
RS2_OPTION_ZERO_ORDER_ENABLED, /**< Toggle Zero-Order mode */
RS2_OPTION_ENABLE_MAP_PRESERVATION, /**< Preserve previous map when starting */
RS2_OPTION_FREEFALL_DETECTION_ENABLED, /**< Enable/disable sensor shutdown when a free-fall is detected (on by default) */
RS2_OPTION_EMITTER_ALWAYS_ON, /**< Enable Laser On constantly (GS SKU Only) */
RS2_OPTION_AVALANCHE_PHOTO_DIODE, /**< Changes the exposure time of Avalanche Photo Diode in the receiver */
RS2_OPTION_POST_PROCESSING_SHARPENING, /**< Changes the amount of sharpening in the post-processed image */
RS2_OPTION_PRE_PROCESSING_SHARPENING, /**< Changes the amount of sharpening in the pre-processed image */
RS2_OPTION_NOISE_FILTERING, /**< Control edges and background noise */
RS2_OPTION_INVALIDATION_BYPASS, /**< Enable\disable pixel invalidation */
RS2_OPTION_AMBIENT_LIGHT, /**< Change the depth ambient light see rs2_ambient_light for values */
RS2_OPTION_SENSOR_MODE, /**< The resolution mode: see rs2_sensor_mode for values */
RS2_OPTION_EMITTER_ALWAYS_ON, /**< Enable Laser On constantly (GS SKU Only) */
RS2_OPTION_COUNT /**< Number of enumeration values. Not a valid input: intended to be used in for-loops. */
} rs2_option;

Expand Down
2 changes: 1 addition & 1 deletion src/types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,14 +320,14 @@ namespace librealsense
CASE(ZERO_ORDER_ENABLED)
CASE(ENABLE_MAP_PRESERVATION)
CASE(FREEFALL_DETECTION_ENABLED)
CASE(EMITTER_ALWAYS_ON)
CASE(AVALANCHE_PHOTO_DIODE)
CASE(POST_PROCESSING_SHARPENING)
CASE(PRE_PROCESSING_SHARPENING)
CASE(NOISE_FILTERING)
CASE(INVALIDATION_BYPASS)
CASE(AMBIENT_LIGHT)
CASE(SENSOR_MODE)
CASE(EMITTER_ALWAYS_ON)
default: assert(!is_valid(value)); return UNKNOWN_VALUE;
}
#undef CASE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,15 @@ public enum Option {
LED_POWER(60),
ZERO_ORDER_ENABLED(61),
ENABLE_MAP_PRESERVATION(62),
FREEFALL_DETECTION_ENABLED(63);
EMITTER_ALWAYS_ON(64);
FREEFALL_DETECTION_ENABLED(63),
AVALANCHE_PHOTO_DIODE(64),
POST_PROCESSING_SHARPENING(65),
PRE_PROCESSING_SHARPENING(66),
NOISE_FILTERING(67),
INVALIDATION_BYPASS(68),
AMBIENT_LIGHT(69),
SENSOR_MODE(70),
EMITTER_ALWAYS_ON(71);

private final int mValue;

Expand Down
23 changes: 22 additions & 1 deletion wrappers/csharp/Intel.RealSense/Types/Enums/Option.cs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,28 @@ public enum Option
/// <summary>Enable/disable sensor shutdown when a free-fall is detected (on by default)</summary>
FreeFallDetectionEnabled = 63,

/// <summary>Changes the exposure time of Avalanche Photo Diode in the receiver</summary>
APDExposureTime = 64,

/// <summary>Changes the amount of sharpening in the post-processed image</summary>
PostProcessingSharpening = 65,

/// <summary>Changes the amount of sharpening in the pre-processed image</summary>
PreProcessingSharpening = 66,

/// <summary>Control edges and background noise</summary>
NoiseFilterLevel = 67,

/// <summary>Enable\disable pixel invalidation</summary>
InvalidationBypass = 68,

/// <summary>Change the depth ambient light see rs2_ambient_light for values</summary>
AmbientLightEnvLevel = 69,

/// <summary>The resolution mode: see rs2_sensor_mode for values</summary>
SensorMode = 70,

/// <summary>Enable Laser On constantly (GS SKU Only)</summary>
EmitterAlwaysOn = 64,
EmitterAlwaysOn = 71
}
}
11 changes: 9 additions & 2 deletions wrappers/matlab/option.m
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,14 @@
zero_order_enabled (61)
enable_map_preservation (62)
freefall_detection_enabled (63)
emitter_always_on (64)
count (65)
apd_exposure_time (64)
post_processing_sharpening (65)
pre_processing_sharpening (66)
noise_filter_level (67)
invalidation_bypass (68)
ambient_light_env_level (69)
sensor_mode (70)
emitter_always_on (71)
count (72)
end
end
9 changes: 8 additions & 1 deletion wrappers/python/pybackend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,14 @@ PYBIND11_MODULE(NAME, m) {
.value("zero_order_enabled", RS2_OPTION_ZERO_ORDER_ENABLED)
.value("enable_map_preservation", RS2_OPTION_ENABLE_MAP_PRESERVATION)
.value("enable_freefall_detection", RS2_OPTION_FREEFALL_DETECTION_ENABLED)
.value("emiiter_always_on", RS2_OPTION_EMITTER_ALWAYS_ON)
.value("exposure_time_receiver_APD", RS2_OPTION_AVALANCHE_PHOTO_DIODE)
.value("post_processing_sharpening_level", RS2_OPTION_POST_PROCESSING_SHARPENING)
.value("pre_processing_sharpening_level", RS2_OPTION_PRE_PROCESSING_SHARPENING)
.value("edge_background_noise_level", RS2_OPTION_NOISE_FILTERING)
.value("activate_pixel_invalidation", RS2_OPTION_INVALIDATION_BYPASS)
.value("ambient_light_environment_level", RS2_OPTION_AMBIENT_LIGHT)
.value("sensor_resolution_mode", RS2_OPTION_SENSOR_MODE)
.value("emitter_always_on", RS2_OPTION_EMITTER_ALWAYS_ON)
.value("count", RS2_OPTION_COUNT);

py::enum_<platform::power_state> power_state(m, "power_state");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ enum class ERealSenseOptionType : uint8
ZERO_ORDER_ENABLED , /**< Zero-order mode */
ENABLE_MAP_PRESERVATION , /**< Preserve map from the previous run */
FREEFALL_DETECTION_ENABLED , /**< Enable/disable sensor shutdown when a free-fall is detected (on by default) */
AVALANCHE_PHOTO_DIODE , /**< Changes the exposure time of Avalanche Photo Diode in the receiver */
POST_PROCESSING_SHARPENING , /**< Changes the amount of sharpening in the post-processed image */
PRE_PROCESSING_SHARPENING , /**< Changes the amount of sharpening in the pre-processed image */
NOISE_FILTERING , /**< Control edges and background noise */
INVALIDATION_BYPASS , /**< Enable\disable pixel invalidation */
AMBIENT_LIGHT , /**< Change the depth ambient light see rs2_ambient_light for values */
SENSOR_MODE , /**< The resolution mode: see rs2_sensor_mode for values */
EMITTER_ALWAYS_ON , /**< Enable Laser On constantly (GS SKU Only) */
};

Expand Down