mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
UAVCAN: Optical Flow: Bug fix (missing integration_timespan field in optical_flow topic). (#13257)
This commit is contained in:
committed by
Julian Oes
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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user