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:
parent
927a5907ba
commit
8a4b19a732
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue