Re: [Flightgear-devel] Ridge lift in south hemisphere

2009-05-23 Thread jean pellotier

jean pellotier a écrit :
hi, yesterday we were near the Kilimanjaro (HTKJ) and up to reach the 
top with a c172, we tried to use the lift given by ridge lift, but it 
was always 0.
I tried to start at Quito (SEQU) and ridge lift get elevation values 
only once in north hemisphere.

it seems that:

 (globals-get_scenery()-get_elevation_m(SGGeod::fromGeodM(
SGGeod::fromRad(probe_lon_rad[i],probe_lat_rad[i]), 
2), elevation, 0))


in environment/ridge_lift.cxx is always false in south hemisphere, an 
can't report the ground elevation



  
The responsable was the test for the pole position, to avoid a division 
by cos(lat) =0,  here's a patch addressing this issue, if someone can 
have a look and commit, thanks.


jano
Index: src/Environment/ridge_lift.cxx
===
RCS file: /var/cvs/FlightGear-0.9/source/src/Environment/ridge_lift.cxx,v
retrieving revision 1.8
diff -u -r1.8 ridge_lift.cxx
--- src/Environment/ridge_lift.cxx	20 May 2009 09:24:56 -	1.8
+++ src/Environment/ridge_lift.cxx	23 May 2009 06:47:58 -
@@ -176,7 +176,7 @@
 
 			probe_lat_rad[i] = asin(sin(user_latitude_rad)*cos(probe_radius_ratio)
 	+cos(user_latitude_rad)*sin_probe_radius_ratio*cos(ground_wind_from_rad));
-			if (probe_lat_rad[i]  SG_EPSILON ) {
+			if (abs(abs(probe_lat_rad[i]) - SG_PI / 2.0)  SG_EPSILON ) {
 probe_lon_rad[i] = user_latitude_rad; // probe on a pole	
 			} else {
 probe_lon_rad[i] = fmod((user_longitude_rad+asin(sin(ground_wind_from_rad)
@@ -191,11 +191,7 @@
 			double elevation = 0;
 			if (globals-get_scenery()-get_elevation_m(SGGeod::fromGeodM(
 SGGeod::fromRad(probe_lon_rad[i],probe_lat_rad[i]), 2), elevation, 0)) {
-if ( elevation  0.1 ) { 
 	probe_elev_m[i] = elevation; 
-} else { 
-	probe_elev_m[i] = 0.1 ;
-}
 			} else { 
 probe_elev_m[i] = 0.1;
 			}
--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.com ___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] YASim static friction

2009-05-23 Thread Mathias Fröhlich

Hi,

On Friday 22 May 2009 16:55:38 d...@bighost.com.br wrote:
 Understood, using the simulation time in the groundcache makes it much
 easier to track. Now it is just a matter of accounting for the FDM and the
 integrator iteration delays in relation to the cache_time_offset. Hopefully
 with you patch and this explanation I will be able to finish it next week.
 Thank you again.
You are welcome.
Tell me when you need anything.

Greetings

Mathias

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.com 
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Ridge lift in south hemisphere

2009-05-23 Thread Torsten Dreyer
 The responsable was the test for the pole position, to avoid a division
 by cos(lat) =0,  here's a patch addressing this issue, if someone can
 have a look and commit, thanks.
Good catch! Commited (with minor modifications).

Torsten

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.com 
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New screenshots of Eurocopter EC 145

2009-05-23 Thread Heiko Schulz

Hi,

very, very well! Nothing can't beat that! Great modelling- go on, that's 
awsome! 
Cheers
HHS
 still in work: http://www.hoerbird.net/galerie.html
But already done: http://www.hoerbird.net/reisen.html



- Ursprüngliche Mail 
Von: Matthias Boerner matthias-boer...@t-online.de
An: flightgear-devel@lists.sourceforge.net
Gesendet: Samstag, den 23. Mai 2009, 00:13:25 Uhr
Betreff: [Flightgear-devel] New screenshots of Eurocopter EC 145

Hello,

I have just uploaded some new screenshots of the EC 145:

http://fgfs.i-net.hu/modules/xcgal/thumbnails.php?album=44


The instrument panels are almost finished. Only the textures are still
missing.

Regards

Matthias

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.com 
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel



  

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.com 
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] fgviewer

2009-05-23 Thread Ron Jensen
On Fri, 2009-05-22 at 20:30 +0200, Mathias Fröhlich wrote:
 Hi all,
 
 I have now checked in a small tool in flightgear that can be used just like 
 osgviewer. The huge difference is that it also works for btg and with some 
 knowledge about the internals of the model loading process also for stg files.
 
 The tool is aimed at people working on scenery and willing to see how their 
 scenery modifications will look like. The can do so now without starting 
 flightgear.

This seems to work for me.  

 This is a basic version of that tool that might grow it there is a need.
 I hope to include more flightgear internal scenery loading stuff so that you 
 can 
 at some time also load aircraft models an see if the static parts 
 animations/transforms/postprocessing steps are as expected without the need 
 to 
 start the whole simulation.

Loading aircraft/building models from the .xml file would be an awesome
feature.

 So far so good.
 
 You need to set the environment variable FG_ROOT like you should have in 
 flightgear. And then for example load a btg.gz file of your interrest :)
 
 Problems and suggestions to me :)
 
 Greetings
 
 Mathias

Thanks Mathias...

It would be nice if an unset FG_ROOT would post a better error message
than:
$ fgviewer 
terminate called after throwing an instance of 'sg_io_exception'
Aborted

It would be even nicer if it compiled in the  --datadir= default from
configure.  :)

But great first step!

Much Thanks,

Ron




--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.com 
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] fgviewer

2009-05-23 Thread Vadym Kukhtin
Great and usefull tool, thanks for start to develop it!


-- 
---
WBR, Vadym.

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.com 
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] fgviewer

2009-05-23 Thread Frederic Bouvier
The tool is included in the last Win32 build

-Fred

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.com 
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] fgviewer

2009-05-23 Thread Heiko Schulz



The tool is included in the last Win32 build


-Fred
Thanks a lot! 

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.com 
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel



  

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.com 
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Visibility and ceiling options broken?

2009-05-23 Thread Torsten Dreyer
 On Fri, 2009-05-22 at 19:25 +0100, Dave wrote:
  Torsten Dreyer wrote:
   Add --prop:/environment/weather-scenario=none to your command line and
   it works again.
  
   Background: the default weather-scenario is METAR and
   if --disable-real-weather-fetch, a fake, hard-coded METAR is
   interpreted which overrides the given options for visibility and
   ceiling.
 
  Hi Torsten,
 
  Thanks for the quick reply, that works and I can fly IFR now :-)
 
  However, when real weather is disabled and the user specifies weather
  conditions on the command line, would it not make sense to incorporate
  those into the fake METAR at startup?  Since you say that this is a
  fake, hard-coded METAR, I can't see what else this could break?
 
  Cheers - Dave

 My first thought was specifying initial conditions in any of
  --disable-real-weather-fetch
  --visibility=
  --ceiling=

 should imply
   environment/weather-scenario=none

 However perhaps Dave's idea of generating a metar to match the
 specifications is better.
How about this?

--metar=27012KT 2SM OVC1000 15/14 Q1001 NOSIG

It will set weather-scenario to METAR and disable real-weather-fetch.

Needs just a little coding and gives some flexibility. But it probably is not 
very intuitive for the average user. And the robustness of the METAR parser 
has to be tested, but that's probably a good idea anyway.

 I'd really like this options, but I am used to reading a METAR, so my vote 
does not really count ;-)

Torsten

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.com 
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Visibility and ceiling options broken?

2009-05-23 Thread Curtis Olson
On Sat, May 23, 2009 at 2:48 PM, Torsten Dreyer wrote:

 How about this?

 --metar=27012KT 2SM OVC1000 15/14 Q1001 NOSIG

 It will set weather-scenario to METAR and disable real-weather-fetch.

 Needs just a little coding and gives some flexibility. But it probably is
 not
 very intuitive for the average user. And the robustness of the METAR parser
 has to be tested, but that's probably a good idea anyway.

  I'd really like this options, but I am used to reading a METAR, so my vote
 does not really count ;-)


I like the idea of being able to pass in arbitrary METAR strings.  That
would allow a person to easily fly with interesting weather copied from some
other location or time.  Or even we could setup challenges like fly this
approach with this weather, etc.

Keep in mind that we estimate cloud tops for METAR weather, so whatever we
do shouldn't prevent someone from customizing cloud top altitudes and wind
layers from within FlightGear or through the property interface.

Best regards,

Curt.
-- 
Curtis Olson: http://baron.flightgear.org/~curt/
--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.com ___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] Question about od_gauge

2009-05-23 Thread daveluff
I'm investigating the possibility of ripping out the horrible 
undocumented special-instrument hack that the KLN89 uses, and using 
the owner-drawn gauge that the weather radar uses instead in order to 
render to a texture and become a normal instrument.

However, I've got a query about the od_gauge, currently wxRadarBg::init 
contains this code snippet:

FGInstrumentMgr *imgr = (FGInstrumentMgr 
*)globals-get_subsystem(instrumentation);
_odg = (FGODGauge *)imgr-get_subsystem(od_gauge);
_odg-setSize(512);

where it obtains a pointer to an FGODGauge class from the instrument 
manager.  This is the only point in the code where any instrument 
obtains a pointer to the od_gauge.

My question is, is it safe for the KLN89 to also obtain a pointer to the 
same FGODGauge instance in this manner and then use it, or does an extra 
instance of FGODGauge have to be created first?

Cheers - Dave

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.com 
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] Start up Problems

2009-05-23 Thread Barry Fawthrop
Hi to All

How can one check what libraries are being used when your run fgfs ?
Also how does one select the best ones?

I'm running on Debian
Linux BARRY 2.6.26-1-vserver-686-bigmem #1 SMP Fri Mar 13 21:48:46 UTC 2009 
i686 GNU/Linux

2.4 GHz Pentium Processor  + 2 Gig Ram  + nVidia geForce 6200 Dual Monitors


I recent upgraded to the new version downloaded and compiled the source
not the apt binary for debian.

1) It plays very choppy, like the plane lurches forward stops, lurch, stop, 
etc...

2) The cockpit is blank in fact just running fgfs no other options and the 
plane cannot be
seen regardless of the view,  Even changing the view or using fgfs 
--aircraft=777-200ER
the plane is not *all* just the left side and the engines there ??

Any advice, please
Thanks in advance

Barry

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.com 
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Start up Problems

2009-05-23 Thread Victhor
1. Is your graphics driver the proprietary one?
2. If above is Yes, then you have a graphics card that's not powerful
enough. If you're running FG in the both heads, try running it in a
single head only. Otherwise, if question 1 is No, install the
proprietary NVIDIA driver and try again.
 Hi to All
 
 How can one check what libraries are being used when your run fgfs ?
 Also how does one select the best ones?
 
 I'm running on Debian
 Linux BARRY 2.6.26-1-vserver-686-bigmem #1 SMP Fri Mar 13 21:48:46 UTC 2009 
 i686 GNU/Linux
 
 2.4 GHz Pentium Processor  + 2 Gig Ram  + nVidia geForce 6200 Dual Monitors
 
 
 I recent upgraded to the new version downloaded and compiled the source
 not the apt binary for debian.
 
 1) It plays very choppy, like the plane lurches forward stops, lurch, stop, 
 etc...
 
 2) The cockpit is blank in fact just running fgfs no other options and the 
 plane cannot be
 seen regardless of the view,  Even changing the view or using fgfs 
 --aircraft=777-200ER
 the plane is not *all* just the left side and the engines there ??
 
 Any advice, please
 Thanks in advance
 
 Barry
 
 --
 Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
 is a gathering of tech-side developers  brand creativity professionals. Meet
 the minds behind Google Creative Lab, Visual Complexity, Processing,  
 iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
 Group, R/GA,  Big Spaceship. http://www.creativitycat.com 
 ___
 Flightgear-devel mailing list
 Flightgear-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/flightgear-devel


--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.com 
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel