From f80b8660bf5ffdd3878ee7edf490ec61e7043fbc Mon Sep 17 00:00:00 2001 From: andy Date: Sun, 27 Oct 2002 04:30:34 +0000 Subject: [PATCH] Fix coordinate conventions for reporting pilot acceleration. Add a few digits to the c.g. report. --- src/FDM/YASim/YASim.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FDM/YASim/YASim.cxx b/src/FDM/YASim/YASim.cxx index c7b283893..a4cacde98 100644 --- a/src/FDM/YASim/YASim.cxx +++ b/src/FDM/YASim/YASim.cxx @@ -87,7 +87,7 @@ void YASim::report() float cg[3]; char buf[256]; a->getModel()->getBody()->getCG(cg); - sprintf(buf, " CG: %.1f, %.1f, %.1f", cg[0], cg[1], cg[2]); + sprintf(buf, " CG: %.3f, %.3f, %.3f", cg[0], cg[1], cg[2]); SG_LOG(SG_FLIGHT, SG_INFO, buf); if(a->getFailureMsg()) { @@ -387,7 +387,7 @@ void YASim::copyFromYASim() _set_Accels_CG_Body(M2FT*v[0], -M2FT*v[1], -M2FT*v[2]); _fdm->getAirplane()->getPilotAccel(v); - _set_Accels_Pilot_Body(M2FT*v[0], M2FT*v[1], -M2FT*v[2]); + _set_Accels_Pilot_Body(-M2FT*v[0], M2FT*v[1], M2FT*v[2]); // There is no property for pilot G's, but I need it for a panel // instrument. Hack this in here, and REMOVE IT WHEN IT FINDS A