mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
distance_sensor: mavlink_receiver: changed to SI units
This commit is contained in:
parent
7e740f262b
commit
36dfda4aea
@ -421,8 +421,8 @@ MavlinkReceiver::handle_message_optical_flow_rad(mavlink_message_t *msg)
|
||||
memset(&d, 0, sizeof(d));
|
||||
|
||||
d.time_boot_ms = hrt_absolute_time();
|
||||
d.min_distance = 3.0f;
|
||||
d.max_distance = 50.0f;
|
||||
d.min_distance = 0.3f;
|
||||
d.max_distance = 5.0f;
|
||||
d.current_distance = flow.distance;
|
||||
d.type = 1;
|
||||
d.id = 0;
|
||||
@ -471,8 +471,8 @@ MavlinkReceiver::handle_message_hil_optical_flow(mavlink_message_t *msg)
|
||||
memset(&d, 0, sizeof(d));
|
||||
|
||||
d.time_boot_ms = hrt_absolute_time();
|
||||
d.min_distance = 3.0f;
|
||||
d.max_distance = 50.0f;
|
||||
d.min_distance = 0.3f;
|
||||
d.max_distance = 5.0f;
|
||||
d.current_distance = flow.distance;
|
||||
d.type = 1;
|
||||
d.id = 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user