1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-24 16:55:29 +03:00

Fix typo in XY velocity calculation [skip ci]

This commit is contained in:
Konstantin (DigitalEntity) Sharlaimov 2018-06-11 21:20:21 +02:00
parent 927a5907ba
commit 8a4b19a732

View file

@ -494,8 +494,8 @@ static void estimationPredict(estimationContext_t * ctx)
if (navIsHeadingUsable() && navIsAccelerationUsable()) {
posEstimator.est.pos.x += posEstimator.imu.accelNEU.x * sq(ctx->dt) / 2.0f;
posEstimator.est.pos.y += posEstimator.imu.accelNEU.y * sq(ctx->dt) / 2.0f;
posEstimator.est.vel.x += posEstimator.imu.accelNEU.z * ctx->dt;
posEstimator.est.vel.y += posEstimator.imu.accelNEU.z * ctx->dt;
posEstimator.est.vel.x += posEstimator.imu.accelNEU.x * ctx->dt;
posEstimator.est.vel.y += posEstimator.imu.accelNEU.y * ctx->dt;
}
}
}