Board index FlightGear Support Interfacing

flight.out file -- structure of columns ++ open out file  Topic is solved

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

flight.out file -- structure of columns ++ open out file

Postby caymo04 » Sun Jul 17, 2022 9:55 am

Good morning everyone!

Thank you in advance.

I would like to open engeniering data from external software.

I saw the https://wiki.flightgear.org/Suggested_P ... ed_Flights but the file downloaded hasn't column name. Where can i find the structure it?

I have data from real FDR (Flight Data Recorder) decoded and i would like to open in FlightGear; How can I do it? Is it possible via "file.out"? --> --generic=file,in,25,flight.out,playback,repeat --fdm=external ????

Any idea are welcome.

Best regards,

Acaymo.
caymo04
 
Posts: 5
Joined: Sun Jul 17, 2022 12:56 am

Re: flight.out file -- structure of columns ++ open out file

Postby SurferTim » Sun Jul 17, 2022 10:07 pm

I think you will find the data order in
/Protocol/playback.xml

I haven't used it. I saw it while writing another script.
Fly low. Fly slow. Land on a dime. Twin Otter. https://github.com/SurferTim/dhc6p
My other aircraft is a Citation-X https://github.com/SurferTim/CitationX
PirateAir videos at https://www.youtube.com/user/SurferTim850
User avatar
SurferTim
 
Posts: 1711
Joined: Sun Dec 09, 2018 6:49 pm
Location: Miramar Beach, FL
Callsign: Pirate
Version: 2020.4.0
OS: Ubuntu 18.04

Re: flight.out file -- structure of columns ++ open out file

Postby erik » Mon Jul 18, 2022 6:00 am

I once wrote support for the ACMS format which should be for real flight recorders:
https://web.archive.org/web/20050207093 ... k/acms.htm

If I remember correctly you could use it like this:
--generic=file,in,25,flight.out,acms,repeat --fdm=acms

But it was developed a long time ago.
Be aware that it requires FlightGear to be compiled with the special purpose FDM modules and I'm not sure wether the provided binary includes them.

Erik
Current: Parachutist, Paraglider, Pterosaur, Pilatus PC-9M and variants, ERCO Ercoupe, Fokker Dr.1, Fokker 50, Fokker 100
Less active: Cessna T-37, T-38, Santa Claus. Previous: General Dynamics F-16. Worked on: Wright Flyer
erik
 
Posts: 2245
Joined: Thu Nov 01, 2007 2:41 pm

Re: flight.out file -- structure of columns ++ open out file

Postby caymo04 » Mon Jul 18, 2022 11:16 pm

Thank you very much to both response!

I finded the structure playback XML (https://sourceforge.net/p/flightgear/fg ... ayback.xml)

The recording are running fine but when i tried to playback not work :(

The command to playback: fgfs --generic=file,in,20,flight.out,playback --fdm=null

The simulator run up but not execute the flight.out file.

How can I test it? The simulator has a log file where I can see the error??

About plaback.xml: Can I add new parameters to recording and playing?

Another question about ACMS: The flightGear can it read RAW data from QAR/FDR??

Best regards and thanks a lot for the support.

Acaymo.
caymo04
 
Posts: 5
Joined: Sun Jul 17, 2022 12:56 am

Re: flight.out file -- structure of columns ++ open out file  

Postby erik » Tue Jul 19, 2022 5:59 am

erik wrote in Mon Jul 18, 2022 6:00 am:Another question about ACMS: The flightGear can it read RAW data from QAR/FDR??

Yes if it is in ACMS format.
At that time I got an example snippet to work with so there might be corner cases which are untested.

Erik
Current: Parachutist, Paraglider, Pterosaur, Pilatus PC-9M and variants, ERCO Ercoupe, Fokker Dr.1, Fokker 50, Fokker 100
Less active: Cessna T-37, T-38, Santa Claus. Previous: General Dynamics F-16. Worked on: Wright Flyer
erik
 
Posts: 2245
Joined: Thu Nov 01, 2007 2:41 pm

Re: flight.out file -- structure of columns ++ open out file

Postby caymo04 » Tue Jul 19, 2022 5:34 pm

Thank you Erik,

About playback, do you know why no execute the out file recorded?

And, the XML playback, is it possible add new parameters??

Best regards!

Acaymo
caymo04
 
Posts: 5
Joined: Sun Jul 17, 2022 12:56 am

Re: flight.out file -- structure of columns ++ open out file

Postby SurferTim » Tue Jul 19, 2022 9:12 pm

The playback script will work if I cut it down to the first 7 controls (aileron & trim, elevator & trim, rudder & trim, flaps) on input and output.
I'll take a guess if the controls/equipment in the playback.xml file aren't on that aircraft, it might cause problems.
Just a guess from "poking the bear with a stick".

Edit: It seems to be working now kinda. I used my Twin Otter. The original playback.xml didn't start the engines, but the flight controls and the position changed. I put this in the launcher under "Additional settings".
Code: Select all
# for record (full path)
--generic=file,out,20,/home/tim/flight.out,playback

# for playback
--generic=file,in,20,/home/tim/flight.out,playback --fdm=null
Fly low. Fly slow. Land on a dime. Twin Otter. https://github.com/SurferTim/dhc6p
My other aircraft is a Citation-X https://github.com/SurferTim/CitationX
PirateAir videos at https://www.youtube.com/user/SurferTim850
User avatar
SurferTim
 
Posts: 1711
Joined: Sun Dec 09, 2018 6:49 pm
Location: Miramar Beach, FL
Callsign: Pirate
Version: 2020.4.0
OS: Ubuntu 18.04

Re: flight.out file -- structure of columns ++ open out file

Postby erik » Thu Jul 21, 2022 7:52 am

caymo04 wrote in Tue Jul 19, 2022 5:34 pm:TAbout playback, do you know why no execute the out file recorded?

Not without knowing how the file was generated and what format it is in.
It should be an ASCII file containing the ACMS parameters.

caymo04 wrote in Tue Jul 19, 2022 5:34 pm:And, the XML playback, is it possible add new parameters??

Yes, sure.
The ACMS configuration file is located in fgdata/Protocol/acms.xml
And it follows the guidelines of the generic protocol:
https://sourceforge.net/p/flightgear/fg ... E.protocol

Erik
Current: Parachutist, Paraglider, Pterosaur, Pilatus PC-9M and variants, ERCO Ercoupe, Fokker Dr.1, Fokker 50, Fokker 100
Less active: Cessna T-37, T-38, Santa Claus. Previous: General Dynamics F-16. Worked on: Wright Flyer
erik
 
Posts: 2245
Joined: Thu Nov 01, 2007 2:41 pm

Re: flight.out file -- structure of columns ++ open out file

Postby caymo04 » Thu Jul 21, 2022 11:30 pm

Thank you very much Erik,

Where can I find name, format and nodes of the simulator?

<chunk>
<name>speed</name>
<format>V=%d</format>
<node>/velocities/airspeed-kt</node>
</chunk>

I'm going to try to do some testing this weekend.

Thank you very much for the help.

Acaymo
caymo04
 
Posts: 5
Joined: Sun Jul 17, 2022 12:56 am

Re: flight.out file -- structure of columns ++ open out file

Postby TheEagle » Fri Jul 22, 2022 12:23 am

name can be anything that helps you recognise what that particular chunk is for, format has to be derived from the structure of a sample input file, and node is for the output I guess - you can look at these nodes aka properties at runtime using the property browser - press / or Shift+7 or use Menu -> Debugging -> Property browser to open it.
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: 3412
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

Re: flight.out file -- structure of columns ++ open out file

Postby caymo04 » Fri Jul 22, 2022 7:00 am

Thank you!!

Best regards,

Acaymo
caymo04
 
Posts: 5
Joined: Sun Jul 17, 2022 12:56 am


Return to Interfacing

Who is online

Users browsing this forum: No registered users and 2 guests