From c4513dfb7cc61c969a440ebd88e76be01a2e4d89 Mon Sep 17 00:00:00 2001 From: RomanBapst Date: Mon, 13 Jan 2025 11:12:38 +0300 Subject: [PATCH] VehicleOpticalFlow: use 32bit integer for dt Signed-off-by: RomanBapst --- src/modules/sensors/vehicle_optical_flow/VehicleOpticalFlow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/sensors/vehicle_optical_flow/VehicleOpticalFlow.cpp b/src/modules/sensors/vehicle_optical_flow/VehicleOpticalFlow.cpp index 334df661bbe6..f7d573d92747 100644 --- a/src/modules/sensors/vehicle_optical_flow/VehicleOpticalFlow.cpp +++ b/src/modules/sensors/vehicle_optical_flow/VehicleOpticalFlow.cpp @@ -161,7 +161,7 @@ void VehicleOpticalFlow::Run() } Vector3f delta_angle{NAN, NAN, NAN}; - uint16_t delta_angle_dt; + uint32_t delta_angle_dt; if (_gyro_integrator.reset(delta_angle, delta_angle_dt)) { _delta_angle += delta_angle;