temporary fix for a division by zero problem for some aircraft
This commit is contained in:
parent
b772e5872a
commit
9a01f8bf73
1 changed files with 7 additions and 0 deletions
|
@ -392,6 +392,13 @@ FGColumnVector3& FGLGear::Force(void)
|
|||
|
||||
void FGLGear::ComputeGroundCoordSys(void)
|
||||
{
|
||||
if( fabs(vGroundNormal(eZ)) < 1e-3 ) {
|
||||
cout << "BOMB: ";
|
||||
cout << vGroundNormal(eX) << "/" << vGroundNormal(eY) << "/" <<
|
||||
vGroundNormal(eZ) << " - " << SteerAngle << endl;
|
||||
return;
|
||||
}
|
||||
|
||||
// Compute the rolling direction projected on the ground
|
||||
// It consists in finding a vector 'r' such that 'r' lies in the plane (w,z) and r.n = 0 (scalar
|
||||
// product) where:
|
||||
|
|
Loading…
Reference in a new issue