[Flightgear-devel] A simple question

2008-11-28 Thread Hart, Gordon (UK)
Hello all, 
 
I'm rather new to Flightgear, and therefore apologise for a rather
straightforward question.
 
Basically, with which functions should I convert the aircraft
orientation from the angle axis representation that seems to be
delivered to the multiplayer server by T_PositionMsg to a heading, roll
and pitch?
 
Thanks for any help you can offer.
 
Gordon.
 
--
Dr Gordon Hart
 
 
 


This email and any attachments are confidential to the intended recipient and 
may also be privileged. If you are not the intended recipient please delete it 
from your system and notify the sender. You should not copy it or use it for 
any purpose nor disclose or distribute its contents to any other person. 

MBDA UK Limited, a company registered in England and Wales, registration number 
3144919 whose registered office is at Six Hills Way, Stevenage, Hertfordshire, 
SG1 2DA, England.



__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Performance and initialization patch

2008-11-28 Thread Yon Uriarte
Hi,

  it seems this message was deleted (over 40k). I cant find it on the
archives so im resending it now with a compressed patch. Please ignore if
this is a repost.
--

 this patch tries to speed up airways laoding. The strutils funcions are
meaningfully commented and renamed. It also does timings on the load times.
My results:

2 runs no changes wrt. to last patch:

Airport load time: 1607
Metar load time: 16
Navaid load time:   499
Airway load time:  1170

Airport load time: 1607
Metar load time: 16
Navaid load time:   483
Airway load time:  1185
---
after changes to airways loader.

Airport load time: 1622
Metar load time:  8
Navaid load time:   499
Airway load time:   690

Airport load time: 1614
Metar load time:  8
Navaid load time:   505
Airway load time:   689

Airport load time: 1610
Metar load time:  8
Navaid load time:   498
Airway load time:   689

Airport load time: 1664
Metar load time:  8
Navaid load time:   510
Airway load time:   699

Airport load time: 1684
Metar load time:  7
Navaid load time:   513
Airway load time:   684

--
Then i noticed i had the files (*.dat) unpacked because i'd been peeking at
the contents.
After repacking i got the following times:

Airport load time: 1806
Metar load time:  7
Navaid load time:   526
Airway load time:   732

Airport load time: 1790
Metar load time:  7
Navaid load time:   522
Airway load time:   721

Airport load time: 1793
Metar load time:  7
Navaid load time:   528
Airway load time:   721

greetings,
 yon


On Thu, Nov 27, 2008 at 11:58 AM, Frederic Bouvier [EMAIL PROTECTED]
 wrote:


 Tools  Options  Text editor  C/C++  Tabs


Thank you, i hope there are no evil tabs now.


flightgear-patch.rar
Description: Binary data
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] Scenery download

2008-11-28 Thread Fabian Grodek
I've been trying to download scenery from flightgear.org since yesterday
without success. Is there any problem with the server?
With the aircraft there is no problem.
Fabian
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Performance and initialization patch

2008-11-28 Thread Yon Uriarte
Hi,
 took a quick stab at navaid parsing. Also, i modified strutils::do_strip to
avoid calling string::operator[] excessively. Results:

Airport load time: 1769
Metar load time: 7
Navaid load time: 349
Airway load time: 726

Airport load time: 1770
Metar load time: 7
Navaid load time: 348
Airway load time: 728

greetings,
 yon


On Fri, Nov 28, 2008 at 11:09 AM, Yon Uriarte [EMAIL PROTECTED] wrote:

 Hi,

   it seems this message was deleted (over 40k). I cant find it on the
 archives so im resending it now with a compressed patch. Please ignore if
 this is a repost.
 --

  this patch tries to speed up airways laoding. The strutils funcions are
 meaningfully commented and renamed. It also does timings on the load times.
 My results:

 2 runs no changes wrt. to last patch:

 Airport load time: 1607
 Metar load time: 16
 Navaid load time:   499
 Airway load time:  1170

 Airport load time: 1607
 Metar load time: 16
 Navaid load time:   483
 Airway load time:  1185
 ---
 after changes to airways loader.

 Airport load time: 1622
 Metar load time:  8
 Navaid load time:   499
 Airway load time:   690

 Airport load time: 1614
 Metar load time:  8
 Navaid load time:   505
 Airway load time:   689

 Airport load time: 1610
 Metar load time:  8
 Navaid load time:   498
 Airway load time:   689

 Airport load time: 1664
 Metar load time:  8
 Navaid load time:   510
 Airway load time:   699

 Airport load time: 1684
 Metar load time:  7
 Navaid load time:   513
 Airway load time:   684

 --
 Then i noticed i had the files (*.dat) unpacked because i'd been peeking at
 the contents.
 After repacking i got the following times:

 Airport load time: 1806
 Metar load time:  7
 Navaid load time:   526
 Airway load time:   732

 Airport load time: 1790
 Metar load time:  7
 Navaid load time:   522
 Airway load time:   721

 Airport load time: 1793
 Metar load time:  7
 Navaid load time:   528
 Airway load time:   721

 greetings,
  yon


 On Thu, Nov 27, 2008 at 11:58 AM, Frederic Bouvier [EMAIL PROTECTED]
  wrote:


 Tools  Options  Text editor  C/C++  Tabs


 Thank you, i hope there are no evil tabs now.




fg.rar
Description: Binary data
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] A simple question

2008-11-28 Thread Jon S. Berndt
For JSBSim aircraft, there are properties you can read that give the Euler
angles you seek. I'd wager the other FDMs have a similar set of properties
available. These are the names of the properties sans the
FlightGear-generated prefix. I can't recall what that prefix is, but perhaps
someone here can refresh my memory (please!):

 

   attitude/phi-rad

   attitude/theta-rad

   attitude/psi-rad

 

   attitude/roll-rad

   attitude/pitch-rad

   attitude/heading-true-rad

 

Jon

 

 

From: Hart, Gordon (UK) [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 28, 2008 6:15 AM
To: flightgear-devel@lists.sourceforge.net
Subject: [Flightgear-devel] A simple question

 

Hello all, 

 

I'm rather new to Flightgear, and therefore apologise for a rather
straightforward question.

 

Basically, with which functions should I convert the aircraft orientation
from the angle axis representation that seems to be delivered to the
multiplayer server by T_PositionMsg to a heading, roll and pitch?

 

Thanks for any help you can offer.

 

Gordon.

 

--

Dr Gordon Hart

 

 

 


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__



This email and any attachments are confidential to the intended recipient
and may also be privileged. If you are not the intended recipient please
delete it from your system and notify the sender. You should not copy it or
use it for any purpose nor disclose or distribute its contents to any other
person. 

MBDA UK Limited, a company registered in England and Wales, registration
number 3144919 whose registered office is at Six Hills Way, Stevenage,
Hertfordshire, SG1 2DA, England.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] A simple question

2008-11-28 Thread Ron Jensen
On Fri, 2008-11-28 at 12:15 +, Hart, Gordon (UK) wrote:
 Hello all, 
  
 I'm rather new to Flightgear, and therefore apologise for a rather
 straightforward question.
  
 Basically, with which functions should I convert the aircraft
 orientation from the angle axis representation that seems to
 be delivered to the multiplayer server by T_PositionMsg to a heading,
 roll and pitch?
  
 Thanks for any help you can offer.
  
 Gordon.
  
 --
 Dr Gordon Hart
  

Unfortunately not a simpler answer. There is a short function in the
fgmap sources: 

static void
euler_get(float lat, float lon, float ox, float oy, float oz,
float *heading, float *pitch, float *roll)

find it here:
http://pigeond.net/git/?p=flightgear/fgmap.git;a=blob_plain;f=src/fg_server_xml.cxx;hb=HEAD

Ron



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Scenery download

2008-11-28 Thread Ron Jensen
On Fri, 2008-11-28 at 16:13 +0200, Fabian Grodek wrote:
 I've been trying to download scenery from flightgear.org since
 yesterday without success. Is there any problem with the server?
 With the aircraft there is no problem.
 Fabian

The main scenery server is often too busy and won't talk to anyone else.
Try a mirror, like this one:
http://mirrors.ibiblio.org/pub/mirrors/flightgear/ftp/Scenery-1.0.1/


Ron



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Performance and initialization patch

2008-11-28 Thread Curtis Olson
On Fri, Nov 28, 2008 at 10:18 AM, Yon Uriarte wrote:

 Hi,
  took a quick stab at navaid parsing. Also, i modified strutils::do_strip
 to avoid calling string::operator[] excessively. Results:

 Airport load time: 1769
 Metar load time: 7
 Navaid load time: 349
 Airway load time: 726

 Airport load time: 1770
 Metar load time: 7
 Navaid load time: 348
 Airway load time: 728


Am I misreading your stats?  There doesn't seem to be any significant
different between your two sets of timing data (?)

Curt.
-- 
Curtis Olson: http://baron.flightgear.org/~curt/
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Scenery download

2008-11-28 Thread Fabian Grodek
On Fri, Nov 28, 2008 at 6:23 PM, Ron Jensen [EMAIL PROTECTED] wrote:


 The main scenery server is often too busy and won't talk to anyone else.
 Try a mirror, like this one:
 http://mirrors.ibiblio.org/pub/mirrors/flightgear/ftp/Scenery-1.0.1/


 Ron

Thank you Ron, the link is talking to me !
Fabian
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Performance and initialization patch

2008-11-28 Thread Yon Uriarte
hi,
 those are 2 consecutive samples of the new navaid.dat parser. Compare with
the times in the previous posts. It has gone down from 520msec to 350msec.
Not a big difference on a fast machine, but it was a very easy change. On
slower machines it should add up.

greetings,
 yon


On Fri, Nov 28, 2008 at 5:25 PM, Curtis Olson [EMAIL PROTECTED] wrote:

 On Fri, Nov 28, 2008 at 10:18 AM, Yon Uriarte wrote:

 Hi,
  took a quick stab at navaid parsing. Also, i modified strutils::do_strip
 to avoid calling string::operator[] excessively. Results:

 Airport load time: 1769
 Metar load time: 7
 Navaid load time: 349
 Airway load time: 726

 Airport load time: 1770
 Metar load time: 7
 Navaid load time: 348
 Airway load time: 728


 Am I misreading your stats?  There doesn't seem to be any significant
 different between your two sets of timing data (?)

 Curt.
 --
 Curtis Olson: http://baron.flightgear.org/~curt/

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Flightgear-devel mailing list
 Flightgear-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/flightgear-devel


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Scenery download

2008-11-28 Thread Martin Spott
Fabian Grodek wrote:

 I've been trying to download scenery from flightgear.org since yesterday
 without success. Is there any problem with the server?

If you're familiar with FlightGear CVS, then you might want to build
the new 'terrasync' tool and download your Scenery from the pre-defined
SVN service.

Cheers,
Martin.
-- 
 Unix _IS_ user friendly - it's just selective about who its friends are !
--

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Call for aircraft nominations

2008-11-28 Thread Durk Talsma
On Sunday 05 October 2008 10:13:54 Durk Talsma wrote:
 While I'm at it. :-)

 With each release we include a selection of representative aircraft that
 highlight FlightGear's capabilities. Inclusion criteria include:
 Completeness, variability across categories, realism, suitability for demo
 flights (think of aerotowing, AI/Multiplayer refueling, carrier landing,
 etc etc.), relative ease of operation (ie don't want to intimidate new
 users too much), and disk space (we don't want to bloat the base package
 too much).


 So, with these criteria in mind, what would be your current top 10 of
 aircraft?


I hope to make some serious progress in pushing out a release candidate this 
weekend. So far I've been given valuable suggestions for potential aircraft to 
include in the release. I still have a gut feeling that there might be hidden 
little gems in our CVS repository that haven't received much attention yet. 
So, if you have your top ten ready, please let me know...

Cheers,
Durk

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Performance and initialization patch

2008-11-28 Thread Yon Uriarte
Hi,
 another little detail. In zfstream.cxx the input buffer for reading
buffered .gz files is set at page_size (4k). It is my understanding this
means files will be read at 4k chunks (uncompressed 4k). By changing the
multiplier to 16 (64k) or even 64 i could unscientifically measure a small
gain. I believe gzstream is used for terrain loading, too. I guess a value
of 16*page_size should be adecuate, not too small, small enough that it
might stay in the cache for the caller to process. This should save on
system calls, too.

Non scientific measurements, twice for each size:

original, 1 page buffer:

Airport load time: 1769
Metar load time: 7
Navaid load time: 349
Airway load time: 726

Airport load time: 1770
Metar load time: 7
Navaid load time: 348
Airway load time: 728


istream.gz buffer from 1 to 16 pages size

Airport load time: 1746
Metar load time: 7
Navaid load time: 343
Airway load time: 716

Airport load time: 1742
Metar load time: 8
Navaid load time: 343
Airway load time: 724

at 64 pages

Airport load time: 1728
Metar load time: 7
Navaid load time: 344
Airway load time: 720

Airport load time: 1736
Metar load time: 7
Navaid load time: 345
Airway load time: 728


Patch:

Index: zfstream.cxx
===
RCS file: /var/cvs/SimGear-0.3/source/simgear/misc/zfstream.cxx,v
retrieving revision 1.5
diff -u -r1.5 zfstream.cxx
--- zfstream.cxx   25 Jul 2008 18:35:42 -   1.5
+++ zfstream.cxx   28 Nov 2008 17:15:05 -
@@ -42,7 +42,7 @@
   ibuffer(0)
 {
 // try {
-ibuf_size = page_size / sizeof(char);
+ibuf_size = 16*(page_size / sizeof(char));
 ibuffer = new char [ibuf_size];
 // } catch (...) {
 //delete [] ibuffer;
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Scenery download

2008-11-28 Thread Fabian Grodek
On Fri, Nov 28, 2008 at 6:52 PM, Martin Spott [EMAIL PROTECTED]wrote:

 Fabian Grodek wrote:

  I've been trying to download scenery from flightgear.org since yesterday
  without success. Is there any problem with the server?

 If you're familiar with FlightGear CVS, then you might want to build
 the new 'terrasync' tool and download your Scenery from the pre-defined
 SVN service.

 Cheers,
Martin.
 --



Well, I'm not really familiar with FlighGear CVS, but I think I'll get into
that soon. I see it's well worth.
Thank you.
Fabian
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] Constant property in a JSBSim model

2008-11-28 Thread Fabian Grodek
Hello,
I have a JSBSim aircraft model in which, at the beginning of the
flight_control block, I defined a constant property as follows:

property value=0.80fcs/KSelev/property

I need this constant to factor a number of coefficients in the aerodynamics
section.

Although this seems to work in standalone JSBSim simulations, in FlightGear
this property gets the value of 0.0.

What is the correct way of defining a constant? (seems a very stupid
question, so I accept similar kind of answers :)   )

Fabian
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Constant property in a JSBSim model

2008-11-28 Thread Jon S. Berndt
Is this again a factor of using an older version of JSBSim? Check the file,
FGFCS.cpp, compared between the latest JSBSim release and the code you are
using in FlightGear.

 

If you are using the same code, this should work.

 

Jon

 

 

From: Fabian Grodek [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 28, 2008 1:53 PM
To: FlightGear developers discussions
Subject: [Flightgear-devel] Constant property in a JSBSim model

 

Hello,

I have a JSBSim aircraft model in which, at the beginning of the
flight_control block, I defined a constant property as follows:

 

property value=0.80fcs/KSelev/property

 

I need this constant to factor a number of coefficients in the aerodynamics
section.

 

Although this seems to work in standalone JSBSim simulations, in FlightGear
this property gets the value of 0.0.

 

What is the correct way of defining a constant? (seems a very stupid
question, so I accept similar kind of answers :)   )

 

Fabian

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] altimeter patch

2008-11-28 Thread Csaba Halász
On Fri, Nov 28, 2008 at 6:57 AM, Syd [EMAIL PROTECTED] wrote:

 The reason I would like this added , once I find a solution to the listeners
 writing to each other

You could compare the value already in the property to the newly
calculated one, and only update if they differ (possibly allowing for
a little floating point error).

-- 
Csaba/Jester

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Constant property in a JSBSim model

2008-11-28 Thread gerard robin
On vendredi 28 novembre 2008, Jon S. Berndt wrote:
 Is this again a factor of using an older version of JSBSim? Check the file,
 FGFCS.cpp, compared between the latest JSBSim release and the code you are
 using in FlightGear.



 If you are using the same code, this should work.



 Jon





 From: Fabian Grodek [mailto:[EMAIL PROTECTED]
 Sent: Friday, November 28, 2008 1:53 PM
 To: FlightGear developers discussions
 Subject: [Flightgear-devel] Constant property in a JSBSim model



 Hello,

 I have a JSBSim aircraft model in which, at the beginning of the
 flight_control block, I defined a constant property as follows:



 property value=0.80fcs/KSelev/property



 I need this constant to factor a number of coefficients in the aerodynamics
 section.



 Although this seems to work in standalone JSBSim simulations, in FlightGear
 this property gets the value of 0.0.



 What is the correct way of defining a constant? (seems a very stupid
 question, so I accept similar kind of answers :)   )



 Fabian

And, you should get with FG cvs on your console, during the moading of JSBSim, 
for instance the following messages


Declared properties

  systems/hook/tailhook-cmd-norm (initial value: 0)
  systems/hook/tailhook-length-ft (initial value: 4)
  systems/hook/tailhook-pos-min-deg (initial value: -5)
  systems/hook/tailhook-pos-max-deg (initial value: 50)
  systems/hook/tailhook-offset-x-in (initial value: 210.17)
  systems/hook/tailhook-offset-y-in (initial value: 0)
  systems/hook/tailhook-offset-z-in (initial value: -31.57)

Channel Hook



-- 
Gérard
http://pagesperso-orange.fr/GRTux/

J'ai décidé d'être heureux parce que c'est bon pour la santé. 
Voltaire


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Performance and initialization patch

2008-11-28 Thread Tim Moore
Yon Uriarte wrote:
 Hi,

 logstream.cxx:
 Modified a bit the logstream implementation to avoid (stack) descent 
 down into (iostream) hell if we are not logging anything anyway. As it 
 is right now, it happily builds the string to print (iostream hell, deep 
 stacks, strings new/delete/copy) and then discards it. I´ve counted over 
 half a million calls to sglog() before the scenery is fully loaded (cant 
 remember with what configuration, more on config below).
 Also, the global logstream is initialized once at startup 
 (constructors, struct ignore_me), no need to check everytime it is 
 called if it's initialized. Maybe if sglog() is used in any global 
 constructor it could happen that it is not initialized and crash, so 
 please, dont use it in the global constructors ;)
I've reworked the logstream changes a bit and checked this in. Thanks.

Tim

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel