Skip to content

Commit 30940b8

Browse files
committed
Simplify config min, max and default
1 parent 32279eb commit 30940b8

File tree

1 file changed

+5
-21
lines changed

1 file changed

+5
-21
lines changed

src/pico_flexx_driver.cpp

+5-21
Original file line numberDiff line numberDiff line change
@@ -151,29 +151,13 @@ class PicoFlexx : public royale::IDepthDataListener, public royale::IExposureLis
151151
status[0].resize(COUNT, false);
152152
status[1].resize(COUNT, false);
153153

154-
config.use_case = 0;
155-
config.exposure_mode = 0;
156-
config.exposure_time = 1000;
157-
config.exposure_mode_stream2 = 0;
158-
config.exposure_time_stream2 = 1000;
159-
config.max_noise = 0.07;
160-
config.range_factor = 2.0;
161-
162-
configMin.use_case = 0;
163-
configMin.exposure_mode = 0;
154+
server.getConfigDefault(config);
155+
156+
server.getConfigMin(configMin);
164157
configMin.exposure_time = 50;
165-
configMin.exposure_mode_stream2 = 0;
166158
configMin.exposure_time_stream2 = 50;
167-
configMin.max_noise = 0.0;
168-
configMin.range_factor = 0.0;
169-
170-
configMax.use_case = 9;
171-
configMax.exposure_mode = 1;
172-
configMax.exposure_time = 2000;
173-
configMax.exposure_mode_stream2 = 1;
174-
configMax.exposure_time_stream2 = 2000;
175-
configMax.max_noise = 0.10;
176-
configMax.range_factor = 7.0;
159+
160+
server.getConfigMax(configMax);
177161
}
178162

179163
~PicoFlexx()

0 commit comments

Comments
 (0)