mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 10:46:33 +08:00
cm8jl65: add field of view
This commit is contained in:
committed by
Beat Küng
parent
5b24f28ac7
commit
6a0ed6af93
@@ -327,9 +327,10 @@ CM8JL65::collect()
|
|||||||
|
|
||||||
bytes_read = OK;
|
bytes_read = OK;
|
||||||
|
|
||||||
distance_sensor_s report;
|
distance_sensor_s report = {};
|
||||||
report.current_distance = static_cast<float>(distance_mm) / 1000.0f;
|
report.current_distance = static_cast<float>(distance_mm) / 1000.0f;
|
||||||
report.id = 0; // TODO: set proper ID.
|
report.id = 0; // TODO: set proper ID.
|
||||||
|
report.h_fov = 0.0488692f;
|
||||||
report.max_distance = _max_distance;
|
report.max_distance = _max_distance;
|
||||||
report.min_distance = _min_distance;
|
report.min_distance = _min_distance;
|
||||||
report.orientation = _rotation;
|
report.orientation = _rotation;
|
||||||
|
|||||||
Reference in New Issue
Block a user