[Flightgear-devel] Fix for bugs #47 and #184

2011-01-30 Thread Bertrand Coconnier
Hi all,

Please find attached a patch that fixes bugs #47 and #184. It restores
functionality of command line arguments --vc, --roll-deg, --pitch-deg,
etc. Note also that this patch has also a positive side effect : it
restores functionality of the 'airspeed (kt)' cell of the 'Position
Aircraft in air' dialog box. Though in most cases, the engines are not
started, and the aircraft is just thrown into the air with correct
altitude/attitude/airspeed/etc.

I have only tested it for JSBSim models. So further tests might be needed.

Cheers,

Bertrand.
diff --git a/src/FDM/flight.cxx b/src/FDM/flight.cxx
index 5676e68..d501d15 100644
--- a/src/FDM/flight.cxx
+++ b/src/FDM/flight.cxx
@@ -268,15 +268,15 @@ FGInterface::bind ()
 // Orientation
   fgTie(/orientation/roll-deg, this,
 	FGInterface::get_Phi_deg,
-	FGInterface::set_Phi_deg);
+	FGInterface::set_Phi_deg, false);
   fgSetArchivable(/orientation/roll-deg);
   fgTie(/orientation/pitch-deg, this,
 	FGInterface::get_Theta_deg,
-	FGInterface::set_Theta_deg);
+	FGInterface::set_Theta_deg, false);
   fgSetArchivable(/orientation/pitch-deg);
   fgTie(/orientation/heading-deg, this,
 	FGInterface::get_Psi_deg,
-	FGInterface::set_Psi_deg);
+	FGInterface::set_Psi_deg, false);
   fgSetArchivable(/orientation/heading-deg);
   fgTie(/orientation/track-deg, this,
 	FGInterface::get_Track);
@@ -331,11 +331,11 @@ FGInterface::bind ()
 // LaRCSim are fixed (LaRCSim adds the
 // earth's rotation to the east velocity).
   fgTie(/velocities/speed-north-fps, this,
-	FGInterface::get_V_north, FGInterface::set_V_north);
+	FGInterface::get_V_north, FGInterface::set_V_north, false);
   fgTie(/velocities/speed-east-fps, this,
-	FGInterface::get_V_east, FGInterface::set_V_east);
+	FGInterface::get_V_east, FGInterface::set_V_east, false);
   fgTie(/velocities/speed-down-fps, this,
-	FGInterface::get_V_down, FGInterface::set_V_down);
+	FGInterface::get_V_down, FGInterface::set_V_down, false);
 
   fgTie(/velocities/north-relground-fps, this,
 FGInterface::get_V_north_rel_ground);
--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Fix for bugs #47 and #184

2011-01-30 Thread ThorstenB
On 30.01.2011 14:55, Bertrand Coconnier wrote:
 Please find attached a patch that fixes bugs #47 and #184. It restores
 functionality of command line arguments --vc, --roll-deg, --pitch-deg,
 etc. Note also that this patch has also a positive side effect : it
 restores functionality of the 'airspeed (kt)' cell of the 'Position
 Aircraft in air' dialog box. Though in most cases, the engines are not
 started, and the aircraft is just thrown into the air with correct
 altitude/attitude/airspeed/etc.

 I have only tested it for JSBSim models. So further tests might be needed.

Great, would be awesome to have this part of FDM integration fixed! I'll 
do a few tests and then push to next.
Everyone else please test and report new issues (JSBSim and YASim).
If nothing new is reported, we should also patch the 2.2.0 branch.

Thanks Bertrand!

cheers,
Thorsten


--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Fix for bugs #47 and #184

2011-01-30 Thread James Turner

On 30 Jan 2011, at 14:07, ThorstenB wrote:

 Great, would be awesome to have this part of FDM integration fixed! I'll 
 do a few tests and then push to next.
 Everyone else please test and report new issues (JSBSim and YASim).
 If nothing new is reported, we should also patch the 2.2.0 branch.

Agreed on all counts - great work Bertrand!

James


--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel