Logging properties

From FlightGear wiki
Revision as of 20:51, 30 January 2014 by Johan G (talk | contribs) (cat: Property Tree)
Jump to navigation Jump to search

FlightGear has the ability to produce multiple logs, each recording the value of user-selected properties at a user-defined interval. Details are available in docs-mini/README.logging; Here's a simple example that logs the rudder and aileron positions to steering.csv every second or so:

 <logging>
  <log>
   <filename>steering.csv</filename>
   <interval-ms>1000</interval-ms>
   <entry>
    <title>Rudder</title>
    <property>/controls/rudder</property>
   </entry>
   <entry>
    <title>Ailerons</title>
    <property>/controls/aileron</property>
   </entry>
  </log>
 </logging>

Here's some sample output:

  Time,Rudder,Ailerons
  6522,0.000000,0.000000
  7668,-0.000000,0.000000
  8702,-0.000000,0.000000
  9705,-0.000000,0.000000
  10784,-0.000000,0.000000
  11792,-0.000000,0.000000
  12808,-0.000000,-0.210000
  13826,-0.000000,-0.344000
  14881,-0.000000,-0.066000
  15901,-0.000000,-0.806000
  16943,-0.000000,-0.936000
  17965,-0.000000,-0.534000
  19013,-0.000000,-0.294000
  20044,-0.000000,0.270000
  21090,-0.000000,-1.000000
  22097,-0.000000,-0.168000