114
edits
(One intermediate revision by the same user not shown) | |||
Line 60: | Line 60: | ||
* hence the menu route manager is not working yet | * hence the menu route manager is not working yet | ||
* routes must be added manually into garmin196 | * routes must be added manually into garmin196 | ||
== Adding an internal view to an existing aircraft == | |||
* I started copying a local draft of my aircraft. ''hint: adding some id to the name string helps to find your version in the aircraft list at startup'' | |||
* The directory for that draft needs to be in a directory published to the starter/launcher and needs to be added if not already done. | |||
* I started FlightGear using my fork/draft. Using the mouse, LCTRL, RMB combination I navigated to the desired viewpoint (or is it point of view?). | |||
* F10 menu: DEBUG -> show property browser -> /sim/current-view | |||
* I found the view-definitions of my draft using the OS' console in the aircraft base folder: | |||
$ grep -winr . -e 'view n=' | |||
''note: for the DR400 the views are stored in /nasal/view.xml which is not default IMHO'' | |||
* following lines were added to /nasal/view.xml | |||
<syntaxhighlight> | |||
<view n="105"> | |||
<name>Radio operation and GPS</name> | |||
<internal archive="y">true</internal> | |||
<type>lookfrom</type> | |||
<config> | |||
<from-model type="bool">true</from-model> | |||
<ground-level-nearplane-m type="double">0.5f</ground-level-nearplane-m> | |||
<x-offset-m archive="y"> 0.141 </x-offset-m> <!-- Right --> | |||
<y-offset-m archive="y"> 0.400 </y-offset-m> <!-- Up --> | |||
<z-offset-m archive="y"> -1.189 </z-offset-m> <!-- Back --> | |||
<pitch-offset-deg>-13.5</pitch-offset-deg> | |||
<default-field-of-view-deg>26.569</default-field-of-view-deg> | |||
<dynamic-view type="bool">false</dynamic-view> | |||
</config> | |||
</view> | |||
</syntaxhighlight> |
edits