We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 423878c commit e9d2a0eCopy full SHA for e9d2a0e
src/sensor_tof_matrix.h
@@ -164,6 +164,19 @@ class SensorTofMatrix{
164
return bottom_max;
165
}
166
167
+ int get_avg_range_bottom_mm() {
168
+
169
+ int16_t _avg = 0;
170
+ uint8_t n = 0;
171
172
+ for (int i=(_size==4?12:48); i < (_size==4?15:63) ;i++) {
173
+ _avg += results.distance_mm[i];
174
+ n++;
175
+ }
176
177
+ return _avg/n;
178
179
180
int get_min_range_left_mm() {
181
182
int16_t _min = results.distance_mm[0];
0 commit comments