Difference between revisions of "FlightGear"

From PaparazziUAV
Jump to navigation Jump to search
(Created page with "== Installation == === Ubuntu Package === Flightgear was available from getdeb.net (now discontinued, you can still use the mirrors). In this example for Ubuntu 12.04 precise, …")
 
Line 1: Line 1:
<categorytree style="float:right; clear:right; margin-left:1ex; border: 1px solid gray; padding: 0.7ex;" mode=pages>Simulation</categorytree>
__TOC__
FlightGear Flight Simulator.
See http://www.flightgear.org/
== Installation ==
== Installation ==


=== Ubuntu Package ===
=== Debian/Ubuntu ===
The standard Debian/Ubuntu repositories contain FlightGear 2.4 or 2.6.


Flightgear was available from getdeb.net (now discontinued, you can still use the mirrors).
Flightgear 2.8 was available from getdeb.net (now discontinued, you can still use the mirrors).
In this example for Ubuntu 12.04 precise, replace the codename as appropriate:
In this example for Ubuntu 12.04 precise, replace the codename as appropriate:


Line 16: Line 24:
  sudo apt-get update
  sudo apt-get update
  sudo apt-get install flightgear
  sudo apt-get install flightgear
== Using FlightGear for Vizualization ==
For Flight Gear visualization of the simulation, version 2.6 or greater is best. If you wish to use version 2.4 or lower, you must add the following to the firmware section of your airframe file:
{{Box Code|conf/airframes/myplane.xml|
<source lang="xml">
  <firmware name="fixedwing or rotorcraft">
    ...
    <define name="FG_2_4" value="1"/>
    ...
  </firmware>
</source>
}}
If you want a view of a quadrotor in flightgear, make a link from
/usr/share/games/flightgear/Models/Aircraft/paparazzi to PAPARAZZI_SRC/conf/simulator/flightgear/
sudo ln -s $PAPARAZZI_SRC/conf/simulator/flightgear/ /usr/share/games/flightgear/Models/Aircraft/paparazzi
* Launch Flight Gear with the following command:
fgfs --fdm=null --native-gui=socket,in,30,,5501,udp
or to e.g. use the mikrokopter quadrotor model:
fgfs --fdm=null --native-gui=socket,in,30,,5501,udp --prop:/sim/model/path=Models/Aircraft/paparazzi/mikrokopter.xml
[[Category:Simulation]] [[Category:Software]]

Revision as of 08:32, 22 January 2013

FlightGear Flight Simulator.

See http://www.flightgear.org/

Installation

Debian/Ubuntu

The standard Debian/Ubuntu repositories contain FlightGear 2.4 or 2.6.

Flightgear 2.8 was available from getdeb.net (now discontinued, you can still use the mirrors). In this example for Ubuntu 12.04 precise, replace the codename as appropriate:

Add the key:

wget -q -O - http://mirrors.dotsrc.org/getdeb/ubuntu/dists/precise-getdeb/Release.gpg | sudo apt-key add -

Add to your /etc/apt.sources.list:

deb http://mirrors.dotsrc.org/getdeb/ubuntu precise-getdeb games
deb-src http://mirrors.dotsrc.org/getdeb/ubuntu precise-getdeb games

Install flightgear:

sudo apt-get update
sudo apt-get install flightgear

Using FlightGear for Vizualization

For Flight Gear visualization of the simulation, version 2.6 or greater is best. If you wish to use version 2.4 or lower, you must add the following to the firmware section of your airframe file:

File: conf/airframes/myplane.xml
  <firmware name="fixedwing or rotorcraft">
     ...
     <define name="FG_2_4" value="1"/>
     ...
  </firmware>


If you want a view of a quadrotor in flightgear, make a link from /usr/share/games/flightgear/Models/Aircraft/paparazzi to PAPARAZZI_SRC/conf/simulator/flightgear/

sudo ln -s $PAPARAZZI_SRC/conf/simulator/flightgear/ /usr/share/games/flightgear/Models/Aircraft/paparazzi
  • Launch Flight Gear with the following command:
fgfs --fdm=null --native-gui=socket,in,30,,5501,udp

or to e.g. use the mikrokopter quadrotor model:

fgfs --fdm=null --native-gui=socket,in,30,,5501,udp --prop:/sim/model/path=Models/Aircraft/paparazzi/mikrokopter.xml