cm8jl65: add field of view

This commit is contained in:
Martina Rivizzigno
2019-06-04 21:38:01 +02:00
committed by Beat Küng
parent 5b24f28ac7
commit 6a0ed6af93
@@ -327,9 +327,10 @@ CM8JL65::collect()
bytes_read = OK;
distance_sensor_s report;
distance_sensor_s report = {};
report.current_distance = static_cast<float>(distance_mm) / 1000.0f;
report.id = 0; // TODO: set proper ID.
report.h_fov = 0.0488692f;
report.max_distance = _max_distance;
report.min_distance = _min_distance;
report.orientation = _rotation;