SpaceFDM
This article is a stub. You can help the wiki by expanding it. |
Note In its current form, this section/article is largely based on quotes collected from various related discussions/channels (devel list, forum etc) using the Instant-Cquotes script. Wiki users and other contributors are encouraged to help rewrite/edit contents accordingly to help get rid of unnecessary quoting (i.e. while the wiki is not intended to be a collection of quotes, quotes are sometimes the best/easiest way to bootstrap new articles, while also providing a good way to link back to related discussions in the archives).
While rewriting usually only entails changing first person speech to 3rd person. However, please try to retain references/links to the original discussion whenever possible. |
Space flight |
---|
in FlightGear |
Space Shuttle |
Vostok-1 |
Background
going to moon is *not* primarily a rendering question - it is a question of the numerical stability of the FDM. At distances of a million kilometers, even small rounding errors tend to become very large over time. Most people are likely not to sit 3 days in front of their computer but do the trip in fast-forward time. Yet the spacecraft is in vacuum, there is *no* damping force for any tumbling or other motion, so you have to ensure that the spacecraft motion is accurately computed across a really large distance in fast-forward time without you emerging in wildly spinning motion. At the same time, you have to solve a multi-body gravitational problem to some accuracy. Mars is worse by about two orders of magnitude.
I'm not convinced that JSBSim is up to that out of the box. — Thorsten (Mar 24th, 2012). Re: Earthview - an orbital terrain rendering engine [v0.1].
(powered by Instant-Cquotes) |
I have been referring only to operating only in the vicinity of a single planetary body, such as Earth, Moon, Mars, etc.
Regarding entry, a better high altitude atmosphere model would help a lot. Right now we use the standard atmosphere, and as I recall we have sort of extended that at high altitude. Our current default atmosphere model is not relevant to any kind of real research. We do have another atmosphere model that might be a lot better, but I have not yet tried it in this application. It's the MSIS atmosphere model, and it is in our atmosphere/ subdirectory. Also, regarding orbital flight, I recently did a comparison between JSBSim and STK (Satellite Toolkit) for a highly elliptical orbit over a 24 hour period. The results were very close. See the JSBSim Facebook page for the details. ( http://www.facebook.com/jsbsim ). |
we need the instruments to do precise orbital maneuvering around earth before even thinking to leave earth orbit, because if we can't compute a launch trajectory to ISS, we can't compute the ejection trajectory to moon or any correction burns either. Having a deep space FDM right now is useless for us, because we can't even test it in a reasonable way. — Thorsten (Mar 25th, 2012). Re: Earthview - an orbital terrain rendering engine [v0.1].
(powered by Instant-Cquotes) |
Motivation
the issues are not the equations of motion - they're easy to write down and code. The problem is to solve them numerically in a long-term stable way so that fast-forward in time works, and Nasal (being tied to graphical frames) is particularly troublesome for this task.
But as a next step, I would suggest that the AI system is expanded to allow to place AI objects in a stable orbit with orbital parameters to be determined in the AI scenario xml. Then we need the instruments to display such information and the tools to in-simulation calculate launch windows, orbital intercept points, the time window for tilting the orbital plane, and these things. — Thorsten (Mar 25th, 2012). Re: Earthview - an orbital terrain rendering engine [v0.1].
(powered by Instant-Cquotes) |
An FDM simulating real orbital mechanics, which properly handles the three-body problem, is required for any moon adventures. Then the FlightGear time acceleration framework would be useful (the [a]/[A] buttons), and the maximum acceleration of x32 extended to higher values. But the orbital mechanics is currently missing. It needs to be implemented in JSBSim. Or in a new orbital/space FDM which can be hot switched to on the FG side. In any case, there is a lot of work ahead. |
FDM
We need no more and no less than what I wrote - a numerically stable solver for orbital dynamics. The accuracy of analytical orbits seems quite enough though. |
AI
That about is the math you have to encode, and then you have to get it numerically stable.
(You have two objects moving with 8 km/s alongside such that their relative motion is close toero, but our coordinate system is not the inertial system in which they're moving but co-rotates with Earth since our infrastructure is for a flightsim where we don't need non-rotating inertial reference frames. The rotation is (dependent on latitude) a bit faster than speed of sound, so you need to get all the numbers to some precision and without numerical jitter if you aim at cm/s docking velocities). Doing a 3d model of the ISS should be easy by comparison. |
Requirements
could there be a 'portal' to go to the Moon or Mars, since not many have a couple of days to spare flying a spaceship to the moon? |
ou can always accelerate simulator time and/or reposition your vehicle at run-time.
Also see the "planets" discussion here, including the links to related devel list postings: [1] |
Maybe if internal perturbations are disabled when time is not normal, the full trajectory in space could be calculated once and the spacecraft made to follow that pre-determined trajectory. If the trajectory requiresero updates, then accelerated time should not be a major issue. This might be quite contrary to the current design of JSBSim though. Hence why I often mention a SpaceFDM instead. Though maybe JSBSim simply requires a 'mode change' that includes 'sleep states' where the trajectory is only recalculated if there is a perturbation. Anyway, such things should be discussed on the JSBSim development mailing list. |