Hi fellow wiki editors!

To help newly registered users get more familiar with the wiki (and maybe older users too) there is now a {{Welcome to the wiki}} template. Have a look at it and feel free to add it to new users discussion pages (and perhaps your own).

I have tried to keep the template short, but meaningful. /Johan G

Zh/Howto: Name fuel tanks

From FlightGear wiki
Jump to: navigation, search

FlightGear 油箱命名 默认为0,1,2,3…… 尽管现现实生活中,各个油箱有不同的名称,如中心油箱、主油箱1、主油箱2等,在大型客机中常见airliners, 在小飞机中常有左、右油箱。 在FlightGear中,飞机开发者可以自由决定油箱的顺序, tank 0不总是代表中心油箱,而tank 1不总是代表飞机左侧油箱。

在FlightGear中要给油箱命名,在-set.xml文件<sim></sim>部分外添加以下代码:

<consumables>
 <fuel>
  <tank n="0"><name>Center</name></tank>
 </fuel>
</consumables>

这将tank 0(飞行动力学模型xml文件中第1个油箱)命名为Center。你可以添加多个油箱,n按步长1递增。下面例子取自Boeing 747-400飞机。

<consumables>
 <fuel>
  <tank n="0"><name>Center</name></tank>
  <tank n="1"><name>Res #2</name></tank>
  <tank n="2"><name>Main #1</name></tank>
  <tank n="3"><name>Main #2</name></tank>
  <tank n="4"><name>Main #3</name></tank>
  <tank n="5"><name>Main #4</name></tank>
  <tank n="6"><name>Res #3</name></tank>
  <tank n="7"><name>Stab</name></tank>
 </fuel>
</consumables>