forked from Archive/PX4-Autopilot
UAVCAN: Optical Flow: Bug fix (missing integration_timespan field in optical_flow topic). (#13257)
This commit is contained in:
parent
9771bac8e8
commit
940ce5b2d6
|
@ -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…
Reference in New Issue