Board index FlightGear Development AI Traffic

AI Traffic

Intelligent, computer controlled vehicles that drive/fly over the planet!

Re: AI Traffic

Postby TheEagle » Thu Sep 08, 2022 12:25 pm

For a JSBSim aircraft, you need to add the following to the end of the main FDM configuration file, but before the closing </fdm_config> tag:
Code: Select all
    <output name="fldata.csv" type="CSV" rate="1">
        <simulation> OFF </simulation>
        <atmosphere> OFF </atmosphere>
        <massprops> OFF </massprops>
        <aerosurfaces> ON </aerosurfaces>
        <rates> OFF </rates>
        <velocities> ON </velocities>
        <forces> OFF </forces>
        <moments> OFF </moments>
        <position> ON </position>
        <coefficients> OFF </coefficients>
        <ground_reactions> OFF </ground_reactions>
        <fcs> OFF </fcs>
        <propulsion> ON </propulsion>
   <property>propulsion/engine[0]/cht-degc</property>
   <property>propulsion/engine[0]/oil-degc</property>   
    </output>

where file sets the output file name and rate sets how many times per second the properties will be read and written to the CSV file. If you want to get aerodynamic data like pitch moment due to flaps or something, i recommend setting all categories to OFF and adding your own properties with <property> tags as shown.
Cessna 210 (Wiki)
My other aircraft: my wiki profile !
Other: FGTools (GitHub)
World tour: View on SkyVector
Please consider donating $1 / €1 to help me finance a new camera !
User avatar
TheEagle
 
Posts: 3413
Joined: Sat May 01, 2021 3:27 pm
Location: France
Pronouns: You, he
Callsign: F-EAGLE
IRC name: none
Version: Git next
OS: Ubuntu Studio 22.04

Previous

Return to AI Traffic

Who is online

Users browsing this forum: No registered users and 8 guests