Fixing presets: Difference between revisions

Jump to navigation Jump to search
m
cat: RFC
m (→‎The Problem: scriptable presets: http://sourceforge.net/p/flightgear/mailman/attachment/F69E014E-F15A-4EAB-B512-36B87CA3B2C5%40mac.com/1/)
m (cat: RFC)
Line 1: Line 1:
= The Problem =
== The Problem ==
The addition of Presets has caused a plethora of problems and many regressions, including breaking support for [[Reset & re-init]], but also for saving/loading flights.
The addition of Presets has caused a plethora of problems and many regressions, including breaking support for [[Reset & re-init]], but also for saving/loading flights.


Line 17: Line 17:
I anyone wants to work on this, it would be a self-contained function in position-init code, just ask here for any questions. All the pieces certainly exist - the taxiways, parking locations and runways for the airport are all accessible.<ref>{{cite web |url=http://sourceforge.net/p/flightgear/mailman/attachment/F69E014E-F15A-4EAB-B512-36B87CA3B2C5%40mac.com/1/|title= Aircraft positioning on the runway|author=James Turner |date=2013-11-12 10:32:27}}</ref>|James Turner}}
I anyone wants to work on this, it would be a self-contained function in position-init code, just ask here for any questions. All the pieces certainly exist - the taxiways, parking locations and runways for the airport are all accessible.<ref>{{cite web |url=http://sourceforge.net/p/flightgear/mailman/attachment/F69E014E-F15A-4EAB-B512-36B87CA3B2C5%40mac.com/1/|title= Aircraft positioning on the runway|author=James Turner |date=2013-11-12 10:32:27}}</ref>|James Turner}}


= Background =
== Background ==
At one point we decided that it would be useful to reset the aircraft position to someplace else while running FlightGear. JSBSim was modified so if it sensed that any of the position properties where changed it would retrim to those values. This was a start, but the problem was that we were using the same set of properties to report fdm position/orientation as we were using to request a change. This turned out to be a little hard to work with, especially if you wanted to change several parameters ... you got reset 1 time for each parameter you changed.
At one point we decided that it would be useful to reset the aircraft position to someplace else while running FlightGear. JSBSim was modified so if it sensed that any of the position properties where changed it would retrim to those values. This was a start, but the problem was that we were using the same set of properties to report fdm position/orientation as we were using to request a change. This turned out to be a little hard to work with, especially if you wanted to change several parameters ... you got reset 1 time for each parameter you changed.


Line 45: Line 45:
Exposing the raw /sim/presets properties to the end user leaves a lot of room for them to make mistakes.
Exposing the raw /sim/presets properties to the end user leaves a lot of room for them to make mistakes.


= Issues =
== Issues ==
 
{{cquote|
{{cquote|
Here's my current hypothesis: when FlightGear is
Here's my current hypothesis: when FlightGear is
Line 157: Line 156:


<references/>
<references/>
[[Category:RFC]]

Navigation menu