On Thu, Jul 24, 2008 at 3:22 AM, Mate Nagy wrote:

> Hello all,
> so we are working on an industrial application that among other things,
> deals with recording and playing back flights. We set this up using the
> native-fdm and native-ctrls protocols, and it all works pretty well.
>  However, now it turns out that it will be a requirement to play back a
> flight up to a certain point, then give controls to the user, who should
> be able to continue to fly from there.
>  The problem is that receiving native-fdm with having an active fdm
> instead of the external/dummy one doesn't work so well - instead of
> updating the entire fdm state, it sort of oscillates (as if the entire
> state was reset after receiving updates).
>  We considered just updating the position, which kind of works (just
> setting the /position/altitude-ft etc. properties, with --notrim
> enabled); but this doesn't handle the rest of the fdm state, like
> engines (so the plane will drop off the air instead of flying along
> normally).
>  Has anyone else done something like this? Is there a "simple" solution,
> or should we try to set up as much of the state as possible by setting
>   individual properties from Nasal or something?


Hi Mate,

I haven't heard of anyone doing specifically what you describe within
FlightGear, although it sounds like it would be a great feature to have.  I
wonder if there would be a way to pause/disable the internal flight dynamics
during the replay, and then when you wish to commence manual flight,
intialize the FDM at the current location and heading and speed.  That might
be the best you could do without developing a custom solution that reaches
deep into the flight dynamics code.  I'm sure you are aware of this, but you
have no way to ensure that the positions of your manual controls are
anything close to where they were at that point in the recorded flight
(elevator trim, throttle, flaps, etc.)  So even if you do all the math
perfectly, it still will be difficult to have the manual pilot fly off with
a nice smooth continuation of the recorded flight

If you haven't already, you might try visiting the jsbsim mailing list (
http://www.jsbsim.org)

Regards,

Curt.
-- 
Curtis Olson: http://baron.flightgear.org/~curt/
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Flightgear-users mailing list
Flightgear-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-users

Reply via email to