Board index FlightGear Development

How can I simulate a fully autonomous plane?  Topic is solved

FlightGear is opensource, so you can be the developer. In the need for help on anything? We are here to help you.
Forum rules
Core development is discussed on the official FlightGear-Devel development mailing list.

Bugs can be reported in the bug tracker.

How can I simulate a fully autonomous plane?

Postby locknutbushing » Fri Jul 21, 2017 7:23 pm

Hi, I'm trying to record sensor input from a 777-200ER to Simulink. I was able to pull this off by manually controlling the plane in FlightGear.

However, I need to run multiple iterations of the same flight simulation on both the Simulink model and FlightGear. Essentially, the plane should repeat the exact same takeoff/landing action over and over again with the possible exception of some input changes between iterations. So obviously manual control isn't an option beyond this point.

I'm completely new to FlightGear, though. How can I simulate a fully autonomous plane? I understand that there are AI planes built into the program - but can I record sensor input from them? Or will I have to program the plane myself with Nasal and/or the XML files (Both of which I have basically zero experience with)?
locknutbushing
 
Posts: 6
Joined: Fri Jul 21, 2017 7:09 pm

Re: How can I simulate a fully autonomous plane?  

Postby Hooray » Fri Jul 21, 2017 7:43 pm

you can use a pre-recorded flight and/or the fgtape (flight recorder subsystem).

Alternatively, you could create a scripted flight using the built-in scripting language.

http://wiki.flightgear.org/Suggested_Pr ... ed_Flights

http://wiki.flightgear.org/Instant_Replay
http://wiki.flightgear.org/Fgtape


Subject: Possibility to run a fully automatized mission ?

Hooray wrote:
Is it possible to make a complete automatized mission, from engine start to engine shutdown ?


Yes, it is possible "to make" such a mission - but you will literally have to MAKE it by writing a script to outline all required steps for your aircraft.
Curt did that a while back for the f14b, which did a fully automated carrier approach using just Nasal scripting:

http://diydrones.com/profiles/blogs/uas ... simulation
http://www.mail-archive.com/flightgear- ... 33987.html
http://www.flightgear.org/forums/viewto ... =4&t=13615


http://www.flightgear.org/tours/carrier-ops/

Another example is the "tanker.nas" script in $FG_ROOT which implements a simple scripted AI tanker for AAR purposes: http://flightgear.org/forums/search.php ... tanker.nas
http://www.mail-archive.com/search?q=ta ... eforge.net

And then we have the fox2.nas script which implements a fox2 AI missile using Nasal: http://flightgear.org/forums/search.php ... s=fox2.nas

The "bombable" addon is completely implemented in Nasal and created multiple virtual pilots for dogfighting purposes: http://wiki.flightgear.org/Bombable

Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 12707
Joined: Tue Mar 25, 2008 9:40 am
Pronouns: THOU

Re: How can I simulate a fully autonomous plane?

Postby locknutbushing » Fri Jul 21, 2017 8:17 pm

Ah! That will work, thank you!
locknutbushing
 
Posts: 6
Joined: Fri Jul 21, 2017 7:09 pm

Re: How can I simulate a fully autonomous plane?

Postby Praxxus » Fri Jul 21, 2017 8:57 pm

I'm only posting coz it's funny.

Dig up Alan Turing...

P:)
Core i5 6600k @ 3.5GHz ; ASUS TUF MARK2 Motherboard
Corsair Vengeance LPX 16GB PC4-19200 2400MHz ; H100i GTX Liquid CPU Cooler ;GTX 1660Ti ; Corsair RM850X ; 250Gb m.2 Drive ; 2x120Gb HyperX FURY SSD's 500r/500w ; Vortex case
Praxxus
 
Posts: 75
Joined: Sat Mar 02, 2013 12:19 am
Location: EGHH
Callsign: Porcius, G-BMTH
IRC name: Porcius
Version: 2020.4.3
OS: Winderz 10 x64

Re: How can I simulate a fully autonomous plane?

Postby locknutbushing » Tue Jul 25, 2017 7:06 pm

Praxxus wrote in Fri Jul 21, 2017 8:57 pm:I'm only posting coz it's funny.

Dig up Alan Turing...

P:)


Uh... what?
locknutbushing
 
Posts: 6
Joined: Fri Jul 21, 2017 7:09 pm


Return to Development

Who is online

Users browsing this forum: No registered users and 16 guests