Skip to content

Commit

Permalink
VehicleOpticalFlow: use 32bit integer for dt
Browse files Browse the repository at this point in the history
Signed-off-by: RomanBapst <bapstroman@gmail.com>
  • Loading branch information
RomanBapst committed Jan 21, 2025
1 parent c7e494b commit f36b45b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f36b45b

Please sign in to comment.