使用 FlightGear 翱翔天空
飞行 飞机

> 
> 你梦想驾驶飞机么？试试开源飞行模拟器 FlightGear 吧。
> 
> 
> 


![](/data/attachment/album/201904/11/103806ecifcinjgxcx0jc4.jpg)


如果你曾梦想驾驶飞机，你会喜欢 [FlightGear](http://home.flightgear.org/) 的。它是一个功能齐全的[开源](http://wiki.flightgear.org/GNU_General_Public_License)飞行模拟器，可在 Linux、MacOS 和 Windows 中运行。


FlightGear 项目始于 1996 年，原因是对商业飞行模拟程序的不满，因为这些程序无法扩展。它的目标是创建一个复杂、强大、可扩展、开放的飞行模拟器框架，来用于学术界和飞行员培训，以及任何想要玩飞行模拟场景的人。


### 入门


FlightGear 的硬件要求适中，包括支持 OpenGL 以实现平滑帧速的加速 3D 显卡。它在我的配备 i5 处理器和仅 4GB 的内存的 Linux 笔记本上运行良好。它的文档包括[在线手册](http://flightgear.sourceforge.net/getstart-en/getstart-en.html)、一个面向[用户](http://wiki.flightgear.org/Portal:User)和[开发者](http://wiki.flightgear.org/Portal:Developer)的 [wiki](http://wiki.flightgear.org/FlightGear_Wiki) 门户网站，还有大量的教程（例如它的默认飞机 [Cessna 172p](http://wiki.flightgear.org/Cessna_172P)）教你如何操作它。


在 [Fedora](http://rpmfind.net/linux/rpm2html/search.php?query=flightgear) 和 [Ubuntu](https://launchpad.net/%7Esaiarcot895/+archive/ubuntu/flightgear) Linux 中很容易安装。Fedora 用户可以参考 [Fedora 安装页面](https://apps.fedoraproject.org/packages/FlightGear/)来运行 FlightGear。


在 Ubuntu 18.04 中，我需要安装一个仓库：



```
$ sudo add-apt-repository ppa:saiarcot895/flightgear
$ sudo apt-get update
$ sudo apt-get install flightgear
```

安装完成后，我从 GUI 启动它，但你也可以通过输入以下命令从终端启动应用：



```
$ fgfs
```

### 配置 FlightGear


应用窗口左侧的菜单提供配置选项。


![](/data/attachment/album/201904/11/103852x7t0smugfms7fkfb.png)


“Summary” 返回应用的主页面。


“Aircraft” 显示你已安装的飞机，并提供了 FlightGear 的默认“机库”中安装多达 539 种其他飞机的选项。我安装了 Cessna 150L、Piper J-3 Cub 和 Bombardier CRJ-700。一些飞机（包括 CRJ-700）有教你如何驾驶商用喷气式飞机的教程。我发现这些教程内容翔实且准确。


![](/data/attachment/album/201904/11/103911xqaaan228z9a8qjo.png)


要选择驾驶的飞机，请将其高亮显示，然后单击菜单底部的 “Fly!”。我选择了默认的 Cessna 172p 并发现驾驶舱的刻画非常准确。


![](/data/attachment/album/201904/11/103948y10mnfisfltigyil.png)


默认机场是檀香山，但你在 “Location” 菜单中提供你最喜欢机场的 [ICAO 机场代码](https://en.wikipedia.org/wiki/ICAO_airport_code)进行修改。我找到了一些小型的本地无塔机场，如 Olean 和 Dunkirk，纽约，以及包括 Buffalo，O'Hare 和 Raleigh 在内的大型机场，甚至可以选择特定的跑道。


在 “Environment” 下，你可以调整一天中的时间、季节和天气。模拟包括高级天气建模和从 [NOAA](https://www.noaa.gov/) 下载当前天气的能力。


“Settings” 提供在暂停模式中开始模拟的选项。同样在设置中，你可以选择多人模式，这样你就可以与 FlightGear 支持者的全球服务器网络上的其他玩家一起“飞行”。你必须有比较快速的互联网连接来支持此功能。


“Add-ons” 菜单允许你下载飞机和其他场景。


### 开始飞行


为了“起飞”我的 Cessna，我使用了罗技操纵杆，它用起来不错。你可以使用顶部 “File” 菜单中的选项校准操纵杆。


总的来说，我发现模拟非常准确，图形界面也很棒。你自己试下 FlightGear —— 我想你会发现它是一个非常有趣和完整的模拟软件。




---


via: <https://opensource.com/article/19/1/flightgear>


作者：[Don Watkins](https://opensource.com/users/don-watkins) 选题：[lujun9972](https://github.com/lujun9972) 译者：[geekpi](https://github.com/geekpi) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
If you've ever dreamed of piloting a plane, you'll love [FlightGear](http://home.flightgear.org/). It's a full-featured, [open source](http://wiki.flightgear.org/GNU_General_Public_License) flight simulator that runs on Linux, MacOS, and Windows.

The FlightGear project began in 1996 due to dissatisfaction with commercial flight simulation programs, which were not scalable. Its goal was to create a sophisticated, robust, extensible, and open flight simulator framework for use in academia and pilot training or by anyone who wants to play with a flight simulation scenario.

## Getting started

FlightGear's hardware requirements are fairly modest, including an accelerated 3D video card that supports OpenGL for smooth framerates. It runs well on my Linux laptop with an i5 processor and only 4GB of RAM. Its documentation includes an [online manual](http://flightgear.sourceforge.net/getstart-en/getstart-en.html); a [wiki](http://wiki.flightgear.org/FlightGear_Wiki) with portals for [users](http://wiki.flightgear.org/Portal:User) and [developers](http://wiki.flightgear.org/Portal:Developer); and extensive tutorials (such as one for its default aircraft, the [Cessna 172p](http://wiki.flightgear.org/Cessna_172P)) to teach you how to operate it.

It's easy to install on both [Fedora](http://rpmfind.net/linux/rpm2html/search.php?query=flightgear) and [Ubuntu](https://launchpad.net/~saiarcot895/+archive/ubuntu/flightgear) Linux. Fedora users can consult the [Fedora installation page](https://apps.fedoraproject.org/packages/FlightGear/) to get FlightGear running.

On Ubuntu 18.04, I had to install a repository:

```
$ sudo add-apt-repository ppa:saiarcot895/flightgear
$ sudo apt-get update
$ sudo apt-get install flightgear
```


Once the installation finished, I launched it from the GUI, but you can also launch the application from a terminal by entering:

`$ fgfs`


## Configuring FlightGear

The menu on the left side of the application window provides configuration options.

![Flightgear home screen Flightgear home screen](https://opensource.com/sites/default/files/uploads/flightgear_menu.png)

**Summary** returns you to the application's home screen.

**Aircraft** shows the aircraft you have installed and offers the option to install up to 539 other aircraft available in FlightGear's default "hangar." I installed a Cessna 150L, a Piper J-3 Cub, and a Bombardier CRJ-700. Some of the aircraft (including the CRJ-700) have tutorials to teach you how to fly a commercial jet; I found the tutorials informative and accurate.

![Choose an aircraft Aircraft selection options](https://opensource.com/sites/default/files/uploads/flightgear_aircraft.png)

To select an aircraft to pilot, highlight it and click on **Fly!** at the bottom of the menu. I chose the default Cessna 172p and found the cockpit depiction extremely accurate.

![FlightGear cockpit view FlightGear cockpit view](https://opensource.com/sites/default/files/uploads/flightgear_cockpit-view.png)

The default airport is Honolulu, but you can change it in the **Location** menu by providing your favorite airport's [ICAO airport code](https://en.wikipedia.org/wiki/ICAO_airport_code) identifier. I found some small, local, non-towered airports like Olean and Dunkirk, New York, as well as larger airports including Buffalo, O'Hare, and Raleigh—and could even choose a specific runway.

Under **Environment**, you can adjust the time of day, the season, and the weather. The simulation includes advance weather modeling and the ability to download current weather from [NOAA](https://www.noaa.gov/).

**Settings** provides an option to start the simulation in Paused mode by default. Also in Settings, you can select multi-player mode, which allows you to "fly" with other players on FlightGear supporters' global network of servers that allow for multiple users. You must have a moderately fast internet connection to support this functionality.

The **Add-ons** menu allows you to download aircraft and additional scenery.

## Take flight

To "fly" my Cessna, I used a Logitech joystick that worked well. You can calibrate your joystick using an option in the **File** menu at the top.

Overall, I found the simulation very accurate and think the graphics are great. Try FlightGear yourself — I think you will find it a very fun and complete simulation package.

## 4 Comments