Skip to content

Commit c4513df

Browse files
committed
VehicleOpticalFlow: use 32bit integer for dt
Signed-off-by: RomanBapst <[email protected]>
1 parent 3229b34 commit c4513df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/sensors/vehicle_optical_flow/VehicleOpticalFlow.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ void VehicleOpticalFlow::Run()
161161
}
162162

163163
Vector3f delta_angle{NAN, NAN, NAN};
164-
uint16_t delta_angle_dt;
164+
uint32_t delta_angle_dt;
165165

166166
if (_gyro_integrator.reset(delta_angle, delta_angle_dt)) {
167167
_delta_angle += delta_angle;

0 commit comments

Comments
 (0)