From 8fb865d1657fd6e418e3c10e89a9e1f820cfd4b0 Mon Sep 17 00:00:00 2001 From: lamestllama Date: Sat, 19 Feb 2011 05:08:20 +1030 Subject: [PATCH] added very small epsilon to crsh test in JSBSim for fixed wing --- sw/simulator/sim_ac_jsbsim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sw/simulator/sim_ac_jsbsim.c b/sw/simulator/sim_ac_jsbsim.c index 64680a609ec..3806af2909c 100644 --- a/sw/simulator/sim_ac_jsbsim.c +++ b/sw/simulator/sim_ac_jsbsim.c @@ -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; }