mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-09 22:49:53 +08:00
fix state update equation (#3003)
This commit is contained in:
@@ -182,7 +182,7 @@ void vff_propagate(float accel, float dt)
|
||||
{
|
||||
/* update state */
|
||||
vff.zdotdot = accel + 9.81f - vff.bias;
|
||||
vff.z += (vff.zdot + vff.zdotdot * dt) * dt / 2.f; // trapizium integration
|
||||
vff.z += (vff.zdot + vff.zdotdot * dt / 2.f) * dt;
|
||||
vff.zdot += vff.zdotdot * dt;
|
||||
|
||||
/* update covariance */
|
||||
|
||||
Reference in New Issue
Block a user