mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
UAVCAN: Optical Flow: Bug fix (missing integration_timespan field in optical_flow topic). (#13257)
This commit is contained in:
parent
4c8f27cf57
commit
ffefd458be
@ -68,6 +68,7 @@ UavcanFlowBridge::flow_sub_cb(const uavcan::ReceivedDataStructure<com::hex::equi
|
||||
optical_flow_s flow{};
|
||||
|
||||
flow.timestamp = hrt_absolute_time();
|
||||
flow.integration_timespan = 1.e6f * msg.integration_interval; // s -> micros
|
||||
flow.pixel_flow_x_integral = msg.flow_integral[0];
|
||||
flow.pixel_flow_y_integral = msg.flow_integral[1];
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user