On 1 Nov 2010, at 16:10, Curtis Olson wrote:

> This capability seems to be broken now.  David did some investigation and 
> here is his email (attached).
> 
> Also, here is a follow up email he just sent me:
> 
> Any control-related property specified in the aircraft *-set.xml files, 
> .fgfsrc, or the command line is blown away.  Many of the *-set.xml files set 
> default fixed aileron and rudder trim to counteract torque etc. in cruise, 
> just like some planes have tabs that can be physically bent on the ground 
> (most planes are designed so that torque/slipstream/etc. effects are 
> negligible in level cruise).
> 
> I'm sure this was just an accident during some code refactoring.

This is likely my fault - as David notes, accidental and during some 
re-factoring. The problem is, as he mentioned in his original email, there's no 
straightforward fix: reset clearly should reset controls (magnetos, flaps, 
stick input) to a default state. The definition of 'default' being the issue.

'preset-commit' should possibly not trigger a full-reset - but I'd worry about 
introducing subtle bugs in re-position from the GUI, if we change that 
behaviour now. On the other hand it is fairly testable, if breakage does occur.

My 'least bad' option is to save control state (from the -set.xml, or config, 
or command line) as part of the initial state, so that it's re-applied after 
the controls are reset. That seems to most robust to me, but I need to check if 
there's knock on effects (possibly rather subtle ones) from saving and then 
restoring more properties during the reset process.

Other suggestions most welcome!

James


------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to