[Flightgear-devel] aircraft search

2010-07-17 Thread James Turner
I've pushed some changes to the aircraft search code, including the 
--show-aircraft option. We're no longer using PLIB ulDir to traverse directory 
structures (a couple more steps on the road to kill off PLIB), and aircraft 
searching is a unified code path - previously the actual --aircraft option and 
--show-aircraft used unrelated code paths.

You will need an up-to-date SimGear (which includes the new simgear::Dir 
helper), and please let me know if you see any problems with aircraft -set 
loading; they're going to be apparent very quickly, since locating the -set.xml 
file happens really early in the startup process.

James



--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] aircraft search

2010-07-17 Thread Torsten Dreyer
 I've pushed some changes to the aircraft search code, including the
  --show-aircraft option. We're no longer using PLIB ulDir to traverse
  directory structures (a couple more steps on the road to kill off PLIB),
  and aircraft searching is a unified code path - previously the actual
  --aircraft option and --show-aircraft used unrelated code paths.
 
 You will need an up-to-date SimGear (which includes the new simgear::Dir
  helper), and please let me know if you see any problems with aircraft -set
  loading; they're going to be apparent very quickly, since locating the
  -set.xml file happens really early in the startup process.
Works flawlessly here.

Torsten

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] weather conditions and winds aloft not working correctly..

2010-07-17 Thread Curtis Olson
Hi Torsten,

While we are on the subject, I have two dumb, but related questions ...

1. I do some UAV work and at times collect some real world flight test data.
 It would be really nice to be able to capture the current metar data off
the internet at the time of the flight, save it into some simple form along
with the flight data, and then later when I replay the flight data, use the
saved metar data for the weather conditions.  Is there a way to do this now?
 Does it work?  In the past when I've tried to enter metar strings into the
Environment-Weather Scenario dialog box, I haven't been able to get
anything to work ... and I'd like to automate this at least through command
line options if it's possible?

Here's an example video replaying a real flight in FlightGear.

http://www.youtube.com/watch?v=toR9UO_Dafc

You might notice that partway through the video I turn the smoke emitter on.
 This is one reason I'd like to have relatively closely matching weather to
the original flight conditions ... so that the smoke drift is in the correct
direction relative to the crab angle and everything is mostly self
consistent.  (obviously it won't be perfect if the closest weather reporting
station is several miles away and the weather report was from an hour ago,
but it's better than nothing ...)

2. This brings me to my second question which might be a bug report?  It's
my understanding that an aircraft is flying relative to it's local air mass.
 So if I emit smoke and the smoke drifts in the same air mass, then from the
perspective of the aircraft looking backwards, the smoke should come
straight out of the tail in line with the aircraft (even if it's crabbing
relative to the ground.)

What I see instead is that the smoke also drifts relative to the path of the
aircraft in the air mass, and this can't possibly be right.  The amount of
error seems to scale in proportion to how strong the winds are.

I think there must be some sort of units conversion or scaling problem (?)
when the local wind vector is applied to submodels and particles?

Is this issue within your domain as the weather master?

Thanks!

Curt.


On Sat, Jul 17, 2010 at 12:08 PM, Torsten Dreyer wrote:

  Not the best quality but readable, hopefully those will demonstrate
  the problems pretty clearly.
 
  http://www.flickr.com/photos/jmburbach/sets/72157624393619399/
 
  I'm also unsure why you bring up altitude above ground, as winds aloft
  are stated above sea level and in true headings are they not?
 Congratulations! You found a - probably long standing - bug!
 The environment interpolation did not work above the second layer due to a
 bug
 probably introduced by myself some long time ago.
 Thanks for reporting and the excellent test case with the screenshots.
 BTW: you don't have to type in your environment setup at every program
 start,
 just use the attached file and start
 fgfs --config=path/to/aloft.xml

 Please check and report if the issue is gone with the latest git pull.

 Torsten


 --
 This SF.net email is sponsored by Sprint
 What will you do first with EVO, the first 4G phone?
 Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
 ___
 Flightgear-devel mailing list
 Flightgear-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/flightgear-devel




-- 
Curtis Olson: http://baron.flightgear.org/~curt/
--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] weather conditions and winds aloft not working correctly..

2010-07-17 Thread Roland Haeder
Hi all,

 Here's an example video replaying a real flight in FlightGear.
 http://www.youtube.com/watch?v=toR9UO_Dafc
 

a little OT but how do I capture those videos? I have a Quad-Core, 2.5
GHz each CPU and a 9500 GT with 512 MB.

Roland



signature.asc
Description: This is a digitally signed message part
--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] weather conditions and winds aloft not working correctly..

2010-07-17 Thread Curtis Olson
On Sat, Jul 17, 2010 at 1:30 PM, Roland Haeder r.hae...@gmx.de wrote:

 Hi all,

  Here's an example video replaying a real flight in FlightGear.
  http://www.youtube.com/watch?v=toR9UO_Dafc
 

 a little OT but how do I capture those videos? I have a Quad-Core, 2.5
 GHz each CPU and a 9500 GT with 512 MB.


Super low tech method ... I mount my digital camera (canon) to a cheap
tripod, line it up, try and get it to focus and then press record ...

If I'm going for a natural camera shake effect I might skip the tripod.

If I'm going for a, hey I just happened to see this cool thing and pulled
out my cell phone effect I might pull out my cell phone ... but it takes
really really crappy over compressed movies (and I think a big part of it's
compression scheme is to drop tons of frames.)

I've played around with ffmpeg and other desktop capture tools, but I must
not have a very powerful machine and all these software techniques kill my
frame rates.

Curt.
-- 
Curtis Olson: http://baron.flightgear.org/~curt/
--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] weather conditions and winds aloft not working correctly..

2010-07-17 Thread Roland Haeder
Hi Curtis!

Thanks for the quick reply. I also such low tech device, a tripod.
Okay, that was to easy. :)

Roland



signature.asc
Description: This is a digitally signed message part
--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] weather conditions and winds aloft not working correctly..

2010-07-17 Thread Torsten Dreyer
Hi Curt,

without having tested this, it might work like this:
Either tie a nasal listener to /environment/metar/data, which contains the raw 
metar text, and write it's content using nasal to a file. The io module should 
be able to handle this.
Or create a generic protocol writing out /environment/metar/data to a file 
(this writes the data even if it does not change, however no nasal is 
required).

Playback should work by feeding metar data into the same property either with 
nasal or the generic protocol. There should be a command line switch --
metar=something to feed an initial metar, but that does not change over time.

So, the short answer to your question is: yes it should work with some 
tweaking.

What you observe with drift of smoke, probably the particles emitted from an 
aircraft use the wind on the ground and not at altitude? I havn't looked at 
the particle code for ages to tell for sure.

I hope this answers your question at least a bit

Torsten

 Hi Torsten,
 
 While we are on the subject, I have two dumb, but related questions ...
 
 1. I do some UAV work and at times collect some real world flight test
  data. It would be really nice to be able to capture the current metar data
  off the internet at the time of the flight, save it into some simple form
  along with the flight data, and then later when I replay the flight data,
  use the saved metar data for the weather conditions.  Is there a way to do
  this now? Does it work?  In the past when I've tried to enter metar
  strings into the Environment-Weather Scenario dialog box, I haven't been
  able to get anything to work ... and I'd like to automate this at least
  through command line options if it's possible?
 
 Here's an example video replaying a real flight in FlightGear.
 
 http://www.youtube.com/watch?v=toR9UO_Dafc
 
 You might notice that partway through the video I turn the smoke emitter
  on. This is one reason I'd like to have relatively closely matching
  weather to the original flight conditions ... so that the smoke drift is
  in the correct direction relative to the crab angle and everything is
  mostly self consistent.  (obviously it won't be perfect if the closest
  weather reporting station is several miles away and the weather report was
  from an hour ago, but it's better than nothing ...)
 
 2. This brings me to my second question which might be a bug report?  It's
 my understanding that an aircraft is flying relative to it's local air
  mass. So if I emit smoke and the smoke drifts in the same air mass, then
  from the perspective of the aircraft looking backwards, the smoke should
  come straight out of the tail in line with the aircraft (even if it's
  crabbing relative to the ground.)
 
 What I see instead is that the smoke also drifts relative to the path of
  the aircraft in the air mass, and this can't possibly be right.  The
  amount of error seems to scale in proportion to how strong the winds are.
 
 I think there must be some sort of units conversion or scaling problem (?)
 when the local wind vector is applied to submodels and particles?
 
 Is this issue within your domain as the weather master?
 
 Thanks!
 
 Curt.
 
 On Sat, Jul 17, 2010 at 12:08 PM, Torsten Dreyer wrote:
   Not the best quality but readable, hopefully those will demonstrate
   the problems pretty clearly.
  
   http://www.flickr.com/photos/jmburbach/sets/72157624393619399/
  
   I'm also unsure why you bring up altitude above ground, as winds aloft
   are stated above sea level and in true headings are they not?
 
  Congratulations! You found a - probably long standing - bug!
  The environment interpolation did not work above the second layer due to
  a bug
  probably introduced by myself some long time ago.
  Thanks for reporting and the excellent test case with the screenshots.
  BTW: you don't have to type in your environment setup at every program
  start,
  just use the attached file and start
  fgfs --config=path/to/aloft.xml
 
  Please check and report if the issue is gone with the latest git pull.
 
  Torsten
 
 
  -
 - This SF.net email is sponsored by Sprint
  What will you do first with EVO, the first 4G phone?
  Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
  ___
  Flightgear-devel mailing list
  Flightgear-devel@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/flightgear-devel
 


--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] weather conditions and winds aloft not working correctly..

2010-07-17 Thread Csaba Halász
On Sat, Jul 17, 2010 at 8:16 PM, Curtis Olson curtol...@gmail.com wrote:
 Hi Torsten,
 While we are on the subject, I have two dumb, but related questions ...

 1. I do some UAV work and at times collect some real world flight test data.
  It would be really nice to be able to capture the current metar data off
 the internet at the time of the flight, save it into some simple form along
 with the flight data, and then later when I replay the flight data, use the
 saved metar data for the weather conditions.  Is there a way to do this now?
  Does it work?  In the past when I've tried to enter metar strings into the
 Environment-Weather Scenario dialog box, I haven't been able to get
 anything to work ... and I'd like to automate this at least through command
 line options if it's possible?

Are you maybe looking for the nice metarproxy script (in the utils
dir) written by Melchior? ;)

-- 
Csaba/Jester

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] weather conditions and winds aloft not working correctly..

2010-07-17 Thread Jacob Burbach
Ok, quick test with a new pull and it seems like heading and speeds
are working for the layers now. The temperatures don't seem to be
taking though, same setup as previous and I was below zero celcius
before reaching 9000 feet and already nearly 9 below celcius at 12000
feet. Not sure about other settings, dewpoint, turbulence, etc, didn't
play with those yet. I did notice altimeter wasn't coinciding with the
input valuesthough to be honest I'm not sure I fully understand
how the altimeter values are supposed work over altitude, temperature,
etc changes...in flightgear or real life.

cheers

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel