Board index FlightGear Support Interfacing

jsbsim (standalone) csv files use as a input to flightgear?  Topic is solved

Connecting two computers, using generic protocol, connecting with Matlab?

jsbsim (standalone) csv files use as a input to flightgear?

Postby niroshan9 » Sun May 12, 2013 6:52 pm

hello, i'm totally noob to fg and I've started doing some test flight studies using jsbsim standalone. i got test cases output as csv files from jsbsim. is it possible to input these csv files directly to flightgear and visualize graphically ? if so can someone suggest me a method ? thanks in advance :)
niroshan9
 
Posts: 16
Joined: Sun May 12, 2013 6:38 pm
Version: 2.8
OS: linux mint,windows 7

Re: jsbsim (standalone) csv files use as a input to flightge  

Postby AndersG » Sun May 12, 2013 7:36 pm

I don't know about the CSV files, but you can send flight data directly from JSBSim to FlightGear for visualization of your test cases.

One example which I use:
Run FlightGear with
Code: Select all
fgfs --fdm=external --native-fdm=socket,in,120,,5550,udp --airport=SP01 --aircraft=Short_Empire


Then start JSBSim (in this case from the root of the JSBSim directory, otherwise you need a --root= argument) with
Code: Select all
JSBSim --logdirectivefile=data_output/flightgear.xml --realtime --script=scripts/Short_S23_4.xml


FlightGear doesn't need to be restarted after each JSBSim run - just keep it running - which saves time.

/Anders
Callsign: SE-AG
Aircraft (uhm...): Submarine Scout, Zeppelin NT, ZF Navy free balloon, Nordstern, Hindenburg, Short Empire flying-boat, ZNP-K, North Sea class, MTB T21 class, U.S.S. Monitor, MFI-9B, Type UB I submarine, Gokstad ship, Renault FT.
AndersG
 
Posts: 2468
Joined: Wed Nov 29, 2006 9:20 am
Location: Göteborg, Sweden
Callsign: SE-AG
OS: Debian GNU Linux

Re: jsbsim (standalone) csv files use as a input to flightge

Postby niroshan9 » Mon May 13, 2013 11:00 am

thanks allot. got it working. :) cheers!! :)
niroshan9
 
Posts: 16
Joined: Sun May 12, 2013 6:38 pm
Version: 2.8
OS: linux mint,windows 7

Re: jsbsim (standalone) csv files use as a input to flightge

Postby AeroFlyWing » Wed Oct 14, 2015 11:10 am

Oh,I have used FG a few days, could you please share the way you input csv file to the JSBSim?
AeroFlyWing
 
Posts: 11
Joined: Tue Oct 13, 2015 2:28 pm
Callsign: Tan651
Version: 3.4.0
OS: Windows

Re: jsbsim (standalone) csv files use as a input to flightge

Postby bitto.mathews » Tue Jun 16, 2020 2:28 pm

I am totally new to flightgear. I have a CSV file generated by our application. I need to use this CSV file as input to flightgear and the flight should fly in flightgear according to the values in CSV. How can I input this CSV to flightgear? Can someone help me out? Thanks in advance.
bitto.mathews
 
Posts: 1
Joined: Thu Jun 11, 2020 2:51 pm


Return to Interfacing

Who is online

Users browsing this forum: No registered users and 1 guest