Re: [Flightgear-devel] Recovering flight data

2009-07-18 Thread Erik Hofman
asma ben zakour wrote:
 The problem seems to be that the xml file I put into data\protocol is looking 
 for some plane informations it cannot find and FG crashes...

I wrote:
 I must admit I never tested that..
 With a bit of luck I might be able to test for that this weekend.
 When I find something I'll apply a patch to prevent FlightGear from 
 crashing.

I just tested the generic output protocol with non existing properties 
and it runs just fine, no segmentation fault here. I've also looked at 
the code and it does look correct. This is all with the generic network 
code from CVS.

Maybe there is something else that is triggering the crash?

Erik

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] Recovering flight data

2009-07-17 Thread asma ben zakour
Hi every one !

I'm a Phd Student on data mining and prognostic , and I want to recover some
aircraft flight data from FG for testing algorithms [?].
I writes an XML File *thesis.xml* ( in the *data/protocol* FG directory )
witch  allow to have some information from generic input/output
configuration.

*thesis.xml* recover several flight on engine information,when i try a
flight with a plane how don't have all the parameters FG crash.

Can some one help me[?]Is there  something to avoid program grach without
removing elements from the XML file [?][?]
thanks all !!! [?]
35E.gifB09.gif1E3.gif330.gifB05.gif--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Recovering flight data

2009-07-17 Thread Erik Hofman


asma ben zakour wrote:
 Hi every one !
 
 I'm a Phd Student on data mining and prognostic , and I want to recover 
 some aircraft flight data from FG for testing algorithms .
 I writes an XML File *thesis.xml* ( in the *data/protocol* FG directory 
 ) witch  allow to have some information from generic input/output 
 configuration. 
 
 *thesis.xml* recover several flight on engine information,when i try a 
 flight with a plane how don't have all the parameters FG crash.
 
 Can some one help meIs there  something to avoid program grach without 
 removing elements from the XML file
 thanks all !!!

If you want to replay the flight using data you've written to an output 
file you probably want to add --fdm=external to your command line. This 
will disable the internal flight dynamics model.

Also make sure the input section of your configuration file matches 
the output section to be sure they use the same properties for both 
directions.

Erik

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Recovering flight data

2009-07-17 Thread asma ben zakour
Tahnks for the answer, actually I don't want to replay the flight, but
extract information from the output file I get from FG.
The problem seems to be that the xml file I put into data\protocol is
looking for some plane informations it cannot find and FG crashes...
Is there a way to make FG not crash when I use a plane that doesn't provide
the information I ask from my XML file ? Or do I have to define a specific
XML file for each plane ?

Thank you :)

2009/7/17 Erik Hofman e...@ehofman.com



 asma ben zakour wrote:
  Hi every one !
 
  I'm a Phd Student on data mining and prognostic , and I want to recover
  some aircraft flight data from FG for testing algorithms .
  I writes an XML File *thesis.xml* ( in the *data/protocol* FG directory
  ) witch  allow to have some information from generic input/output
  configuration.
 
  *thesis.xml* recover several flight on engine information,when i try a
  flight with a plane how don't have all the parameters FG crash.
 
  Can some one help meIs there  something to avoid program grach without
  removing elements from the XML file
  thanks all !!!

 If you want to replay the flight using data you've written to an output
 file you probably want to add --fdm=external to your command line. This
 will disable the internal flight dynamics model.

 Also make sure the input section of your configuration file matches
 the output section to be sure they use the same properties for both
 directions.

 Erik


 --
 Enter the BlackBerry Developer Challenge
 This is your chance to win up to $100,000 in prizes! For a limited time,
 vendors submitting new applications to BlackBerry App World(TM) will have
 the opportunity to enter the BlackBerry Developer Challenge. See full prize
 details at: http://p.sf.net/sfu/Challenge
 ___
 Flightgear-devel mailing list
 Flightgear-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/flightgear-devel

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Recovering flight data

2009-07-17 Thread Erik Hofman


asma ben zakour wrote:
 Tahnks for the answer, actually I don't want to replay the flight, but 
 extract information from the output file I get from FG.
 The problem seems to be that the xml file I put into data\protocol is 
 looking for some plane informations it cannot find and FG crashes...
 Is there a way to make FG not crash when I use a plane that doesn't 
 provide the information I ask from my XML file ? Or do I have to define 
 a specific XML file for each plane ?

I must admit I never tested that..
With a bit of luck I might be able to test for that this weekend.
When I find something I'll apply a patch to prevent FlightGear from 
crashing.

Erik

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Recovering flight data

2009-07-17 Thread Ron Jensen
On Fri, 2009-07-17 at 13:50 +0200, asma ben zakour wrote:
 Tahnks for the answer, actually I don't want to replay the flight, but
 extract information from the output file I get from FG.
 The problem seems to be that the xml file I put into data\protocol is
 looking for some plane informations it cannot find and FG crashes...
 Is there a way to make FG not crash when I use a plane that doesn't
 provide the information I ask from my XML file ? Or do I have to
 define a specific XML file for each plane ?
 
 Thank you :)

Two methods just to mind.
1. Create the missing property on the command line:
  fgfs --prop:/uncreated/property/name=0

Depending on which properties you're using you could add all the
properties in your thesis.xml file to the .fgfsrc file.

2. Create the missing property in the aircraft -set file.
  uncreatedpropertyname0/name/property/uncreated

Ron



--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Recovering flight data

2009-07-17 Thread Curtis Olson
On Fri, Jul 17, 2009 at 10:05 AM, Ron Jensen wrote:

 On Fri, 2009-07-17 at 13:50 +0200, asma ben zakour wrote:
  Tahnks for the answer, actually I don't want to replay the flight, but
  extract information from the output file I get from FG.
  The problem seems to be that the xml file I put into data\protocol is
  looking for some plane informations it cannot find and FG crashes...
  Is there a way to make FG not crash when I use a plane that doesn't
  provide the information I ask from my XML file ? Or do I have to
  define a specific XML file for each plane ?
 
  Thank you :)

 Two methods just to mind.
 1. Create the missing property on the command line:
  fgfs --prop:/uncreated/property/name=0

 Depending on which properties you're using you could add all the
 properties in your thesis.xml file to the .fgfsrc file.

 2. Create the missing property in the aircraft -set file.
  uncreatedpropertyname0/name/property/uncreated


This would be a good short term work around, but definitely I hope Eric can
look at the generic IO interface code and make sure it sets the create
flag to true on all the properties that are referenced so they are created
if they don't otherwise exist.

Curt.
-- 
Curtis Olson: http://baron.flightgear.org/~curt/
--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Recovering flight data

2009-07-17 Thread Ron Jensen
On Fri, 2009-07-17 at 10:10 -0500, Curtis Olson wrote:
 On Fri, Jul 17, 2009 at 10:05 AM, Ron Jensen wrote:
 On Fri, 2009-07-17 at 13:50 +0200, asma ben zakour wrote:
  Tahnks for the answer, actually I don't want to replay the
 flight, but
  extract information from the output file I get from FG.
  The problem seems to be that the xml file I put into data
 \protocol is
  looking for some plane informations it cannot find and FG
 crashes...
  Is there a way to make FG not crash when I use a plane that
 doesn't
  provide the information I ask from my XML file ? Or do I
 have to
  define a specific XML file for each plane ?
 
  Thank you :)
 
 
 Two methods just to mind.
 1. Create the missing property on the command line:
  fgfs --prop:/uncreated/property/name=0
 
 Depending on which properties you're using you could add all
 the
 properties in your thesis.xml file to the .fgfsrc file.
 
 2. Create the missing property in the aircraft -set file.
  uncreatedpropertyname0/name/property/uncreated
 
 This would be a good short term work around, but definitely I hope
 Eric can look at the generic IO interface code and make sure it sets
 the create flag to true on all the properties that are referenced so
 they are created if they don't otherwise exist.

Would this actually be desirable?  Right now the system balks if the
property doesn't exist forcing an explicit declaration.  Setting the
create flag would allow typos, for example, to slip through silently.
It would also lull you into thinking you were logging an interesting
property, when in fact, you're just logging dummies.

Ron



--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Recovering flight data

2009-07-17 Thread Curtis Olson
On Fri, Jul 17, 2009 at 10:22 AM, Ron Jensen wrote:

 On Fri, 2009-07-17 at 10:10 -0500, Curtis Olson wrote:
  This would be a good short term work around, but definitely I hope
  Eric can look at the generic IO interface code and make sure it sets
  the create flag to true on all the properties that are referenced so
  they are created if they don't otherwise exist.

 Would this actually be desirable?  Right now the system balks if the
 property doesn't exist forcing an explicit declaration.  Setting the
 create flag would allow typos, for example, to slip through silently.
 It would also lull you into thinking you were logging an interesting
 property, when in fact, you're just logging dummies.


I suppose there are different philosophies of error handling, but having a
hard crash is not my personal favorite.

I like the idea of silently creating the property if it doesn't exist ...
that is the way so many of our other systems work.  If you have a nasal
script that writes some output value and a gauge that displays it, if there
is a typo in the gauge property, this will get created with zero or null
value.  Presumably a person would test their data logging before deploying
it and would investigate why one or more channels is reporting zero.

Perhaps another option would be to throw an exception if the property
doesn't exist, which would presumably be caught somewhere and an appropriate
message displayed.  but I really don't like it when user generated
configurations can produce hard segfault crashes with no error message other
than segfault or bus error.

Regards,

Curt.
-- 
Curtis Olson: http://baron.flightgear.org/~curt/
--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel