> The new JSBSim does zero-out the wind forces while stationary on the
> ground to prevent ground jitter. That might be the cause of what you are
> seeing.
>

I see. Do you have an FDM-independent idea (for real aircraft, aside from
the UFO) on how to get the horizontal airspeed component? (It would be
great to do this with respect to any view origin, stationary or moving,
aircraft-bound or not).

Right now I am doing an
        fgGetDouble("/velocities/airspeed-kt", 0.0)
                        * cos( fgGetDouble("/orientation/pitch-deg", 0.0)
                                * SGD_DEGREES_TO_RADIANS)
on each frame inside FGRenderer::update(), which is wrong even with
aircraft-bound view when on the ground as per what you had explained
above. It seems to work when the aircraft is flying; and it currently
is totally broken if I switch to a tower view since it gets aircraft
speed and not the view origin airspeed and slants the rain accordingly :-)

I could read the wind speed from /environment (wind-speed-kt and
wind-speed-heading), and compute the view origin airspeed myself
by combining it with the view origin groundspeed.
Is there a simple way to learn if the current view origin is moving or not?
(If not, is it a reasonable thing for me to try to add to FGViewer?
what about the view origin airspeed computations?)

Vassilii



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to