UAVCAN: Optical Flow: Bug fix (missing integration_timespan field in optical_flow topic). (#13257)

This commit is contained in:
Jacob Crabill 2019-10-25 04:21:03 -07:00 committed by Daniel Agar
parent 9771bac8e8
commit 940ce5b2d6
1 changed files with 1 additions and 0 deletions

View File

@ -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];