Howto:Implement a Control Display Unit: Difference between revisions
Jump to navigation
Jump to search
m (Robot: Cosmetic changes) |
No edit summary |
||
Line 34: | Line 34: | ||
</ident> | </ident> | ||
<input type="string"/> | <input type="string"/> | ||
<serviceable>true</serviceable> | <serviceable type="bool">true</serviceable> | ||
</cdu> | </cdu> | ||
</instrumentation> | </instrumentation> |
Revision as of 19:00, 30 July 2011
FlightGear has a generic Control Display Unit (CDU) model available, for easy implementation into aircraft. Currently only a Boeing style one is available, under Aircraft/Instruments-3d/cdu/. Be sure you have implemented a V-speed calculator before implementing the CDU.
The Boeing 747-400 is an example aircraft for the generic CDU.
model .xml
For each single CDU unit, the following code block is required in your aircraft's model .xml file. You can add as many CDUs as you need.
<model> <path>Aircraft/Instruments-3d/cdu/boeing.xml</path> <offsets> <x-m> 0.858</x-m> <y-m> 0.186</y-m> <z-m> 0.489</z-m> <pitch-deg>-75</pitch-deg> </offsets> <overlay> <texture>boeing_brown.png</texture> </overlay> </model>
- offsets: use these to position the CDU in your cockpit. The CDU model's origin is in the center of the model.
- texture: currently there are two textures to chose from, in order to fit your aircraft's panel color:
-set.xml
These should all be placed outside the <sim></sim> part.
<instrumentation> <cdu> <display>IDENT</display> <ident> <model>747-400</model> <engines>-80C2B1F</engines> </ident> <input type="string"/> <serviceable type="bool">true</serviceable> </cdu> </instrumentation> <nasal> <cdu> <file>Aircraft/Instruments-3d/cdu/boeing.nas</file> </cdu> </nasal>
- display: the initial page, when power is first applied to the aircraft.
- ident: data to be displayed on the IDENTIFICATION page.