Re: [Flightgear-devel] A Car for Flightgear

2007-08-15 Thread Mike Schuh
On Wed, 15 Aug 2007, Detlef Faber wrote:

Thanks, next is airlift for the jeep.

As in load it into a C-130 Hercules I presume.  That'd be cool.

We could add race tracks to the interiors of C-5 Galaxy (aka the aluminum
overcast) (I walked around inside one at the Abbotsford, BC, Canada, air
show this weekend - *BIG* airplane!).

But why stop with this?  Why not an Aerocar?

 
http://www.museumofflight.org/Collection/Aircraft.asp?RecordKey=C39138F6-8220-4A29-9B33-4C9A264D67FB

In the model railroading world, they say there is a prototype for
everything...

--
Mike Schuh - Seattle, Washington USA
http://www.farmdale.com

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] A Car for Flightgear

2007-08-15 Thread Detlef Faber
Am Dienstag, den 14.08.2007, 23:23 -0700 schrieb Mike Schuh:
 On Wed, 15 Aug 2007, Detlef Faber wrote:
 
 Thanks, next is airlift for the jeep.
 
 As in load it into a C-130 Hercules I presume.  That'd be cool.

That is the ultimate goal. But first I will try to do airlift by
helicopter.

 We could add race tracks to the interiors of C-5 Galaxy (aka the aluminum
 overcast) (I walked around inside one at the Abbotsford, BC, Canada, air
 show this weekend - *BIG* airplane!).
 
 But why stop with this?  Why not an Aerocar?
 
  
 http://www.museumofflight.org/Collection/Aircraft.asp?RecordKey=C39138F6-8220-4A29-9B33-4C9A264D67FB
 
 In the model railroading world, they say there is a prototype for
 everything...
 
Now as you mention it, I think there once was a jeep fitted with a
autogyro rotor. Hmmm...

 --
 Mike Schuh - Seattle, Washington USA
 http://www.farmdale.com
 
 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now   http://get.splunk.com/
 ___
 Flightgear-devel mailing list
 Flightgear-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/flightgear-devel


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Severe Turbulence (Weather Interpolation Problem?)

2007-08-15 Thread Tim Moore
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Committed; thanks.

Tim

Anders Gidenstam wrote:
 On Sun, 12 Aug 2007, Hans Fugal wrote:
 
 That's because there is no custom comparison predicate for comparing
 bucket*. vectorbucket* is just a list of pointers, and so uses the
 sort order for pointers. You'd have to set up an STL functor to sort
 them, which is ugly and difficult (but certainly doable). If sorting
 is unnecessary it's a better way to go, obviously. :-)
 
 Yep, that's what I figured out eventually. I think it is safer to keep the
 sorting for now - in case e.g. the user changes the layer elevations
 using the property browser.
 
 The patch included adds a comparison predicate for buckets.
 
 Please test it and commit it if it is acceptable. It works fine here.
 
 Cheers,
 
 Anders
 
 
 
 
 diff --git a/src/Environment/environment_ctrl.cxx 
 b/src/Environment/environment_ctrl.cxx
 index a1ed5f2..0ca2cba 100644
 --- a/src/Environment/environment_ctrl.cxx
 +++ b/src/Environment/environment_ctrl.cxx
 @@ -231,7 +231,7 @@ FGInterpolateEnvironmentCtrl::read_table (const 
 SGPropertyNode * node,
  table.push_back(b);
  }
  }
 -sort(table.begin(), table.end());
 +sort(table.begin(), table.end(), bucket::lessThan);
  }
  
  void
 @@ -312,6 +312,11 @@ FGInterpolateEnvironmentCtrl::bucket::operator (const 
 bucket b) const
  return (altitude_ft  b.altitude_ft);
  }
  
 +bool
 +FGInterpolateEnvironmentCtrl::bucket::lessThan(bucket *a, bucket *b)
 +{
 +return (a-altitude_ft)  (b-altitude_ft);
 +}
  
  
  
 diff --git a/src/Environment/environment_ctrl.hxx 
 b/src/Environment/environment_ctrl.hxx
 index f561f05..cd01b55 100644
 --- a/src/Environment/environment_ctrl.hxx
 +++ b/src/Environment/environment_ctrl.hxx
 @@ -134,6 +134,8 @@ private:
  double altitude_ft;
  FGEnvironment environment;
  bool operator (const bucket b) const;
 +// LessThan predicate for bucket pointers.
 +static bool lessThan(bucket *a, bucket *b);
  };
  
  void read_table (const SGPropertyNode * node, vectorbucket * table);
 
 
 
 
 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now   http://get.splunk.com/
 
 
 
 
 ___
 Flightgear-devel mailing list
 Flightgear-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/flightgear-devel


- --
Red Hat France SARL, 171 Avenue Georges Clemenceau
92024 Nanterre Cedex, France.
Siret n° 421 199 464 00056
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFGwxp3eDhWHdXrDRURAi06AJ9HC5lPWthjDXoBhb7C1WaQlLwfGACgph1s
FgxdcvBCmHOD/yjfJjMpLVQ=
=0m5Y
-END PGP SIGNATURE-

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Severe Turbulence (Weather Interpolation Problem?)

2007-08-15 Thread Reagan Thomas
Tim Moore wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Committed; thanks.
 
 Tim

It looks like this fix needs to be applied to the weather interpolation 
in the plib branch also.

 
 Anders Gidenstam wrote:
 
On Sun, 12 Aug 2007, Hans Fugal wrote:


That's because there is no custom comparison predicate for comparing
bucket*. vectorbucket* is just a list of pointers, and so uses the
sort order for pointers. You'd have to set up an STL functor to sort
them, which is ugly and difficult (but certainly doable). If sorting
is unnecessary it's a better way to go, obviously. :-)

Yep, that's what I figured out eventually. I think it is safer to keep the
sorting for now - in case e.g. the user changes the layer elevations
using the property browser.

The patch included adds a comparison predicate for buckets.

Please test it and commit it if it is acceptable. It works fine here.

Cheers,

Anders




diff --git a/src/Environment/environment_ctrl.cxx 
b/src/Environment/environment_ctrl.cxx
index a1ed5f2..0ca2cba 100644
--- a/src/Environment/environment_ctrl.cxx
+++ b/src/Environment/environment_ctrl.cxx
@@ -231,7 +231,7 @@ FGInterpolateEnvironmentCtrl::read_table (const 
SGPropertyNode * node,
 table.push_back(b);
 }
 }
-sort(table.begin(), table.end());
+sort(table.begin(), table.end(), bucket::lessThan);
 }
 
 void
@@ -312,6 +312,11 @@ FGInterpolateEnvironmentCtrl::bucket::operator (const 
bucket b) const
 return (altitude_ft  b.altitude_ft);
 }
 
+bool
+FGInterpolateEnvironmentCtrl::bucket::lessThan(bucket *a, bucket *b)
+{
+return (a-altitude_ft)  (b-altitude_ft);
+}
 
 
 
diff --git a/src/Environment/environment_ctrl.hxx 
b/src/Environment/environment_ctrl.hxx
index f561f05..cd01b55 100644
--- a/src/Environment/environment_ctrl.hxx
+++ b/src/Environment/environment_ctrl.hxx
@@ -134,6 +134,8 @@ private:
 double altitude_ft;
 FGEnvironment environment;
 bool operator (const bucket b) const;
+// LessThan predicate for bucket pointers.
+static bool lessThan(bucket *a, bucket *b);
 };
 
 void read_table (const SGPropertyNode * node, vectorbucket * table);



 
 
 - --
 Red Hat France SARL, 171 Avenue Georges Clemenceau
 92024 Nanterre Cedex, France.
 Siret n° 421 199 464 00056
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.7 (GNU/Linux)
 Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
 
 iD8DBQFGwxp3eDhWHdXrDRURAi06AJ9HC5lPWthjDXoBhb7C1WaQlLwfGACgph1s
 FgxdcvBCmHOD/yjfJjMpLVQ=
 =0m5Y
 -END PGP SIGNATURE-
 



-- 
Reagan Thomas


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] nasal variables

2007-08-15 Thread Andy Ross
Stewart Andreason wrote:
 If accessing temp1 _is_ faster than .getValue, then at 2 or 3
 accesses, I imagine it becomes faster to do the above?

Yes, it's definitely faster, because there's less work to do.
Evaluating the expression temp1 requires pushing the symbol value (a
string) onto the stack, and executing OP_LOCAL which does a hash table
lookup to find the value in the namespace list and leave it on the
stack for the next bit of code to use.

Evaluating node.getValue() requires:

  Pushing the symbol node onto the stack
  Executing OP_LOCAL to look it up
  Pushing the symbol getValue onto the stack
  Executing OP_MEMBER to look it up in the object
  Executing OP_CALL to call it as a function
  Finally (!) calling the C++ property node function
  Turn the output node into a Nasal object and leave it on the stack.

That said, you really don't want to be designing your scripts around
raw, low-level performance issues.  Write your code to be readable,
not blazingly fast.  In general altitude is more readable than
altNode.getValue().

Andy



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] A Car for Flightgear

2007-08-15 Thread leee
On Wednesday 15 August 2007 07:52, Detlef Faber wrote:
 Am Dienstag, den 14.08.2007, 23:23 -0700 schrieb Mike Schuh:
  On Wed, 15 Aug 2007, Detlef Faber wrote:
  Thanks, next is airlift for the jeep.
 
  As in load it into a C-130 Hercules I presume.  That'd be cool.

 That is the ultimate goal. But first I will try to do airlift by
 helicopter.

  We could add race tracks to the interiors of C-5 Galaxy (aka the
  aluminum overcast) (I walked around inside one at the Abbotsford, BC,
  Canada, air show this weekend - *BIG* airplane!).
 
  But why stop with this?  Why not an Aerocar?
 
  
  http://www.museumofflight.org/Collection/Aircraft.asp?RecordKey=C39138F6-
 8220-4A29-9B33-4C9A264D67FB
 
  In the model railroading world, they say there is a prototype for
  everything...

 Now as you mention it, I think there once was a jeep fitted with a
 autogyro rotor. Hmmm...


http://www.fiddlersgreen.net/AC/aircraft/Flying-Jeep/info/info.htm

The bit where it says The initial test behind the Whitley allegedly left much 
to be desired, the hanging control column threshing about and the pilot 
having to exert all his strength to maintain control might be a bit 
understated - I read an account of the first air-tow flight and apparently 
both the and observer were terrified by the experience, the whole flight 
being more or less completely out of control:)

LeeE


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] A Car for Flightgear

2007-08-15 Thread Georg Vollnhals
Detlef Faber schrieb:
 Hello everybody,

 Following some recent discussions about vehicle simulation in
 FlightGear, I made a Willys Jeep for testing. 
 It is still a little basic, but IMHO quite usable.

 Get it here:

 http://sol2500.net/flightgear/jeep.tar.gz

 Steer the car with aileron control. , is Brake and . is
 Accelerator. 

 If you have rudder pedals with Toebrakes, the left pedal is Brake and 
 the right is Accelerator.

 M (Shift-m) engages Reverse, m disengages reverse.

 Driving is best with OSG, Plib delivers a lot of crashes and unstable
 behaviour in rough terrain.

 Greetings

 Detlef

   

Hi,
this is a very nice toy to play with - a very well done 3D model AND
(for FG OSG) very easy to steer and control (.. although I would favour
the joystick throttle for accelerating :-) ). Thank you very much, Detlef.

What really fascinated me is that I saw my FlightGear world with other
eyes from the Jeep - if you drive through a scenery with some objects.
The perception is even different from a very low flying helicopter -
sizes, perspektive and space.

Here are some screenshots for demonstration, might be (one) good reason
to get an OSG FG version running :-)

http://home.arcor.de/vollnhals-bremen/JeepTest/

Have as much fun with Detlef's Jeep as I had/have!

Regards
Georg EDDW


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] A Car for Flightgear

2007-08-15 Thread Heiko Schulz
Hi georg - very nice scenery - great work!

@Detelf: Can't wait until I have time to try your
jeep!

Greetings
HHS
--- Georg Vollnhals [EMAIL PROTECTED] schrieb:

 Detlef Faber schrieb:
  Hello everybody,
 
  Following some recent discussions about vehicle
 simulation in
  FlightGear, I made a Willys Jeep for testing. 
  It is still a little basic, but IMHO quite usable.
 
  Get it here:
 
  http://sol2500.net/flightgear/jeep.tar.gz
 
  Steer the car with aileron control. , is Brake
 and . is
  Accelerator. 
 
  If you have rudder pedals with Toebrakes, the left
 pedal is Brake and 
  the right is Accelerator.
 
  M (Shift-m) engages Reverse, m disengages reverse.
 
  Driving is best with OSG, Plib delivers a lot of
 crashes and unstable
  behaviour in rough terrain.
 
  Greetings
 
  Detlef
 

 
 Hi,
 this is a very nice toy to play with - a very well
 done 3D model AND
 (for FG OSG) very easy to steer and control (..
 although I would favour
 the joystick throttle for accelerating :-) ). Thank
 you very much, Detlef.
 
 What really fascinated me is that I saw my
 FlightGear world with other
 eyes from the Jeep - if you drive through a scenery
 with some objects.
 The perception is even different from a very low
 flying helicopter -
 sizes, perspektive and space.
 
 Here are some screenshots for demonstration, might
 be (one) good reason
 to get an OSG FG version running :-)
 
 http://home.arcor.de/vollnhals-bremen/JeepTest/
 
 Have as much fun with Detlef's Jeep as I had/have!
 
 Regards
 Georg EDDW
 
 

-
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems? 
 Stop.
 Now Search log events and configuration files using
 AJAX and a browser.
 Download your FREE copy of Splunk now  
 http://get.splunk.com/
 ___
 Flightgear-devel mailing list
 Flightgear-devel@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/flightgear-devel
 



  Machen Sie Yahoo! zu Ihrer Startseite. Los geht's: 
http://de.yahoo.com/set

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel