Skip to content

Commit

Permalink
added very small epsilon to crsh test in JSBSim for fixed wing
Browse files Browse the repository at this point in the history
  • Loading branch information
lamestllama committed Feb 18, 2011
1 parent 75c7eb5 commit 8fb865d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sw/simulator/sim_ac_jsbsim.c
Expand Up @@ -287,7 +287,7 @@ bool check_crash_jsbsim(JSBSim::FGFDMExec* FDMExec) {
lat = FDMExec->GetPropagate()->GetLatitude(), // in rad
lon = FDMExec->GetPropagate()->GetLongitude(); // in rad

if (agl< 0) {
if (agl< -1e-5) {
cerr << "Crash detected: agl < 0" << endl << endl;
return false;
}
Expand Down

0 comments on commit 8fb865d

Please sign in to comment.