mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-12-02 22:40:27 +08:00
VehicleOpticalFlow: use 32bit integer for dt
Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
1 parent
c7e494b8d9
commit
f36b45b2ff
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user