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 Julian Oes
parent 4c8f27cf57
commit ffefd458be
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];