Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
unit-tests
func
presets
test-after-hw-reset.cpp
Go to the documentation of this file.
1
// License: Apache 2.0. See LICENSE file in root directory.
2
// Copyright(c) 2020 Intel Corporation. All Rights Reserved.
3
4
//#cmake: static!
5
//#test:device L500*
6
7
#include "../func-common.h"
8
#include "../reset-camera.h"
9
#include "
presets-common.h
"
10
#include <
l500/l500-options.h
>
11
12
using namespace
rs2
;
13
14
TEST_CASE
(
"calc preset after hw reset"
,
"[l500][live]"
)
15
{
16
auto
devices
=
find_devices_by_product_line_or_exit
(
RS2_PRODUCT_LINE_L500
);
17
auto
dev
=
devices
[0];
18
19
auto
new_dev =
reset_camera_and_wait_for_connection
(
dev
);
20
auto
depth_sens = new_dev.first<
rs2::depth_sensor
>();
21
22
// Camera should boot up with max-range preset, always
23
CHECK
( depth_sens.get_option(
RS2_OPTION_VISUAL_PRESET
) ==
RS2_L500_VISUAL_PRESET_MAX_RANGE
);
24
}
RS2_L500_VISUAL_PRESET_MAX_RANGE
Definition:
rs_option.h:157
test-bad-conditions.dev
dev
Definition:
test-bad-conditions.py:16
rs2::depth_sensor
Definition:
rs_sensor.hpp:454
TEST_CASE
TEST_CASE("calc preset after hw reset","[l500][live]")
Definition:
test-after-hw-reset.cpp:14
rs2
Definition:
cah-model.h:10
l500-options.h
presets-common.h
reset_camera_and_wait_for_connection
rs2::device reset_camera_and_wait_for_connection(rs2::device &dev)
Definition:
reset-camera.h:11
find_devices_by_product_line_or_exit
rs2::device_list find_devices_by_product_line_or_exit(int product)
Definition:
func-common.h:24
test-fg.devices
devices
Definition:
test-fg.py:9
RS2_PRODUCT_LINE_L500
#define RS2_PRODUCT_LINE_L500
Definition:
rs_context.h:96
CHECK
#define CHECK(condition)
Definition:
easylogging++.h:4483
RS2_OPTION_VISUAL_PRESET
Definition:
rs_option.h:36
librealsense2
Author(s): Sergey Dorodnicov
, Doron Hirshberg
, Mark Horn
, Reagan Lopez
, Itay Carpis
autogenerated on Mon May 3 2021 02:50:11