Common aircraft properties: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(It makes no sense to re-invent existing defaults.)
(Draft)
Line 8: Line 8:
There was an [http://code.google.com/p/flightgear-bugs/issues/detail?id=1173 attempt to unify it all with a nasal script] but after consulation and comments with others, this attempt was replaced with the solution to standardise common aircraft properties in standardised locations.
There was an [http://code.google.com/p/flightgear-bugs/issues/detail?id=1173 attempt to unify it all with a nasal script] but after consulation and comments with others, this attempt was replaced with the solution to standardise common aircraft properties in standardised locations.


This document will exhaustively list property tree locations where aircraft developers should store their aircraft properties (if not alias them).
This document will exhaustively list property tree locations where aircraft developers should store their common aircraft properties (if not alias them).


==Gear==
==Gear==
Properties marked with an '✲' are standard across all aircraft and should always be set. For example, an old aircraft without any autobrakes should still define /controls/gear/autobrake although set it to 0
===States===
===States===
*In /controls/gear
*In /controls/gear
** /controls/gear/brake-parking<br />0 = Off<br />1 = On
** /controls/gear/brake-parking &#10034;<br />0 = Off<br />1 = On
** /controls/gear/brake-chokes<br />0 = Off<br />1 = On
** /controls/gear/brake-chokes &#10034;<br />0 = Off<br />1 = On
** /controls/gear/antiskid<br />0 = Off<br />1 = On
** /controls/gear/antiskid &#10034;<br />0 = Off<br />1 = On
** /controls/gear/autobrake<br />0 = Off<br />1 = On
** /controls/gear/autobrake &#10034;<br />0 = Fully Off<br />1 = Fully On
launcbar
** /controls/gear/launcbar &#10034;
servicable
** /controls/gear/servicable &#10034;
brake-servicable
** /controls/gear/brake-servicable
brake-temperature
** /controls/gear/brake-temperature
brake-hydraulic-pressure
** /controls/gear/brake-hydraulic-pressure
tyre-temperature
** /controls/gear/tyre-temperature
tyre-pressure
** /controls/gear/tyre-pressure
brake-available
** /controls/gear/brake-available &#10034;
retractable
** /controls/gear/retractable &#10034;
** /controls/gear/brake &#10034;
** /controls/gear/gear-down<br />0 = Retracted<br />1 = Extended
** /controls/gear/gear-down<br />0 = Retracted<br />1 = Extended
*In /controls/gear/gear[n]
*In /controls/gear/gear[n]

Revision as of 03:23, 31 July 2013

WIP.png Work in progress
This article or section will be worked on in the upcoming hours or days.
See history for the latest developments.

WORK IN PROGRESS

TODO: standardise locations most common to existing aircraft to ease transition

With common aircraft properties found in uncommon locations, assigning buttons in joysticks to certain functions became mostly a hit or miss affair.

There was an attempt to unify it all with a nasal script but after consulation and comments with others, this attempt was replaced with the solution to standardise common aircraft properties in standardised locations.

This document will exhaustively list property tree locations where aircraft developers should store their common aircraft properties (if not alias them).

Gear

Properties marked with an '✲' are standard across all aircraft and should always be set. For example, an old aircraft without any autobrakes should still define /controls/gear/autobrake although set it to 0

States

  • In /controls/gear
    • /controls/gear/brake-parking ✲
      0 = Off
      1 = On
    • /controls/gear/brake-chokes ✲
      0 = Off
      1 = On
    • /controls/gear/antiskid ✲
      0 = Off
      1 = On
    • /controls/gear/autobrake ✲
      0 = Fully Off
      1 = Fully On
    • /controls/gear/launcbar ✲
    • /controls/gear/servicable ✲
    • /controls/gear/brake-servicable
    • /controls/gear/brake-temperature
    • /controls/gear/brake-hydraulic-pressure
    • /controls/gear/tyre-temperature
    • /controls/gear/tyre-pressure
    • /controls/gear/brake-available ✲
    • /controls/gear/retractable ✲
    • /controls/gear/brake ✲
    • /controls/gear/gear-down
      0 = Retracted
      1 = Extended
  • In /controls/gear/gear[n]

Transitions

  • In /gear/gear[n]
    • /gear/gear[n]/position-norm
      0 = Fully Retracted
      0.x = Transitioning
      1 = Fully Extended
  • In /controls/gear/gear[n]

brake-pressure 0 0.x 1 friction-ground friction-ground-real friction-bearing friction-bearing-real friction-side-slip friction-side-slip-real


Speedbrakes

engine --thrust reversers

flaps

tailhook


radios - /instrumentation/nav


fuel


implementation with custom locations: if you require your values be stored in a custom location, be sure to alias them in the standard location: <property alias="../../params/n1"/>h