Accelerations should be added to the velocity, not multiplied
This commit is contained in:
parent
133a7d4271
commit
3d3922cd46
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ void FGACMS::update( double dt ) {
|
||||||
sgSetVec3(accel_ned, acc_lon, acc_lat, acc_down);
|
sgSetVec3(accel_ned, acc_lon, acc_lat, acc_down);
|
||||||
double accel = sgLengthVec3 (accel_ned) * SG_FEET_TO_METER;
|
double accel = sgLengthVec3 (accel_ned) * SG_FEET_TO_METER;
|
||||||
|
|
||||||
double velocity = (_speed->getDoubleValue() * SG_KT_TO_MPS) * accel * dt;
|
double velocity = (_speed->getDoubleValue() * SG_KT_TO_MPS) + accel * dt;
|
||||||
double dist = cos (pitch) * velocity * dt;
|
double dist = cos (pitch) * velocity * dt;
|
||||||
double kts = velocity * SG_MPS_TO_KT;
|
double kts = velocity * SG_MPS_TO_KT;
|
||||||
_set_V_equiv_kts( kts );
|
_set_V_equiv_kts( kts );
|
||||||
|
|
Loading…
Reference in a new issue