Skip to content

Commit ffefd45

Browse files
JacobCrabilljulianoes
authored andcommitted
UAVCAN: Optical Flow: Bug fix (missing integration_timespan field in optical_flow topic). (#13257)
1 parent 4c8f27c commit ffefd45

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/drivers/uavcan/sensors/flow.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ UavcanFlowBridge::flow_sub_cb(const uavcan::ReceivedDataStructure<com::hex::equi
6868
optical_flow_s flow{};
6969

7070
flow.timestamp = hrt_absolute_time();
71+
flow.integration_timespan = 1.e6f * msg.integration_interval; // s -> micros
7172
flow.pixel_flow_x_integral = msg.flow_integral[0];
7273
flow.pixel_flow_y_integral = msg.flow_integral[1];
7374

0 commit comments

Comments
 (0)