Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor/de-duplicate view XML and add a CDU close-up view #22

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 1 addition & 107 deletions common-IAE.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
###################################################################################
-->
<PropertyList>
<sim n="0">
<sim include="common-views.xml" n="0">
<description>Boeing KC-137R</description>
<author>J Maverick 16, Josh Davidson, Martien Van Der P., Nikolai V. Chr., FL2070, MD-GRK and others. Based on Lake of Constance Hangar 707 [Original from Innis Cunningham]</author>
<status>Early Production</status>
Expand Down Expand Up @@ -130,112 +130,6 @@
<checklist include="Checklists/before-engines-startup-APU.xml"/>
</checklists>

<view>
<internal archive="y">true</internal>
<config>
<limits>
<enabled archive="y" type="bool">false</enabled>
</limits>
<!-- x/y/z == right/up/back -->
<x-offset-m archive="y">-0.45</x-offset-m>
<y-offset-m archive="y">1.155</y-offset-m>
<z-offset-m archive="y">-18.2</z-offset-m>
<pitch-offset-deg archive="y">-15.0</pitch-offset-deg>
<default-field-of-view-deg type="double">76.2</default-field-of-view-deg>
</config>
</view>
<view n="101">
<name>Copilot View</name>
<enabled type="bool">true</enabled>
<type>lookfrom</type>
<internal type="bool">true</internal>
<config>
<from-model type="bool">true</from-model>
<from-model-idx type="int">true</from-model-idx>
<!-- x/y/z == right/up/back -->
<x-offset-m archive="y"> 0.45</x-offset-m>
<y-offset-m archive="y">1.11</y-offset-m>
<z-offset-m archive="y">-18.2</z-offset-m>
<pitch-offset-deg archive="y">-16.0</pitch-offset-deg>
<default-pitch-deg type="double">-16.0</default-pitch-deg>
<default-field-of-view-deg type="double">76.2</default-field-of-view-deg>
</config>
</view>
<view n="102">
<name>Engineer View</name>
<enabled type="bool">true</enabled>
<type>lookfrom</type>
<internal type="bool">true</internal>
<config>
<from-model type="bool">true</from-model>
<from-model-idx type="int">true</from-model-idx>
<!-- x/y/z == right/up/back -->
<x-offset-m archive="y"> 0.17</x-offset-m>
<y-offset-m archive="y"> 1.21</y-offset-m>
<z-offset-m archive="y">-17.5</z-offset-m>
<heading-offset-deg type="double">-90.0</heading-offset-deg>
<pitch-offset-deg type="double">-2.0</pitch-offset-deg>
<from-model-idx type="int">0</from-model-idx>
<ground-level-nearplane-m type="double">0.5f</ground-level-nearplane-m>
<default-field-of-view-deg type="double">90.0</default-field-of-view-deg>
<default-pitch-deg type="double">-2.0</default-pitch-deg>
<default-heading-deg type="double">0</default-heading-deg>
<front-direction-deg type="double">0</front-direction-deg>
<front-left-direction-deg type="double">45</front-left-direction-deg>
<left-direction-deg type="double">90</left-direction-deg>
<back-left-direction-deg type="double">135</back-left-direction-deg>
<back-direction-deg type="double">180</back-direction-deg>
<back-right-direction-deg type="double">225</back-right-direction-deg>
<right-direction-deg type="double">270</right-direction-deg>
<front-right-direction-deg type="double">315</front-right-direction-deg>
<dynamic-view type="bool">true</dynamic-view>
</config>
</view>
<view n="103">
<name>Officer View</name>
<enabled type="bool">true</enabled>
<type>lookfrom</type>
<internal type="bool">true</internal>
<config>
<from-model type="bool">true</from-model>
<from-model-idx type="int">true</from-model-idx>
<!-- x/y/z == right/up/back -->
<x-offset-m archive="y"> 0.0</x-offset-m>
<y-offset-m archive="y"> 1.27</y-offset-m>
<z-offset-m archive="y">-17.6</z-offset-m>
<heading-offset-deg type="double"> 0.0</heading-offset-deg>
<pitch-offset-deg type="double">-5.0</pitch-offset-deg>
<ground-level-nearplane-m type="double">0.5f</ground-level-nearplane-m>
<default-field-of-view-deg type="double">70.0</default-field-of-view-deg>
<default-pitch-deg type="double">-5.0</default-pitch-deg>
<default-heading-deg type="double">0</default-heading-deg>
<front-direction-deg type="double">0</front-direction-deg>
<dynamic-view type="bool">true</dynamic-view>
</config>
</view>
<view n="104">
<name>Overhead View</name>
<enabled type="bool">true</enabled>
<type>lookfrom</type>
<internal type="bool">true</internal>
<config>
<from-model type="bool">true</from-model>
<from-model-idx type="int">true</from-model-idx>
<!-- x/y/z == right/up/back -->
<x-offset-m archive="y"> 0.0</x-offset-m>
<y-offset-m archive="y"> 0.9</y-offset-m>
<z-offset-m archive="y">-18.45</z-offset-m>
<heading-offset-deg type="double"> 0.0</heading-offset-deg>
<pitch-offset-deg type="double">75.0</pitch-offset-deg>
<ground-level-nearplane-m type="double">0.5f</ground-level-nearplane-m>
<default-field-of-view-deg type="double">102.0</default-field-of-view-deg>
<default-pitch-deg type="double">-5.0</default-pitch-deg>
<default-heading-deg type="double">0</default-heading-deg>
<front-direction-deg type="double">0</front-direction-deg>
<dynamic-view type="bool">true</dynamic-view>
</config>
</view>

<chase-distance-m type="double" archive="y">-85</chase-distance-m>

<multiplay>
Expand Down
184 changes: 184 additions & 0 deletions common-views.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
<?xml version="1.0"?>

<!--

This file contains view configurations that are common to and used by
all aircraft variants in the repository. Derived from the
Boeing 707 from the Lake of Constance Hanagar by M. Kraus, Sept. 2013.

Copyright (C) 2024 Joshua Murphy

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; If not, see <http://www.gnu.org/licenses/>.

-->

<PropertyList>

<!-- Default view, from the pilot's seat -->
<view>
<internal archive="y">true</internal>
<config>
<limits>
<enabled archive="y" type="bool">false</enabled>
</limits>
<!-- x/y/z == right/up/back -->
<x-offset-m archive="y">-0.45</x-offset-m>
<y-offset-m archive="y">1.155</y-offset-m>
<z-offset-m archive="y">-18.2</z-offset-m>
<pitch-offset-deg archive="y">-15.0</pitch-offset-deg>
<default-field-of-view-deg type="double">76.2</default-field-of-view-deg>
</config>
</view>

<!-- View from the copilot's seat -->
<view n="101">
<name>Copilot View</name>
<enabled type="bool">true</enabled>
<type>lookfrom</type>
<internal type="bool">true</internal>
<config>
<from-model type="bool">true</from-model>
<from-model-idx type="int">true</from-model-idx>
<!-- x/y/z == right/up/back -->
<x-offset-m archive="y"> 0.45</x-offset-m>
<y-offset-m archive="y">1.11</y-offset-m>
<z-offset-m archive="y">-18.2</z-offset-m>
<pitch-offset-deg archive="y">-16.0</pitch-offset-deg>
<default-pitch-deg type="double">-16.0</default-pitch-deg>
<default-field-of-view-deg type="double">76.2</default-field-of-view-deg>
</config>
</view>

<!-- View from the flight engineer's seat -->
<view n="102">
<name>Engineer View</name>
<enabled type="bool">true</enabled>
<type>lookfrom</type>
<internal type="bool">true</internal>
<config>
<from-model type="bool">true</from-model>
<from-model-idx type="int">true</from-model-idx>
<!-- x/y/z == right/up/back -->
<x-offset-m archive="y"> 0.17</x-offset-m>
<y-offset-m archive="y"> 1.21</y-offset-m>
<z-offset-m archive="y">-17.5</z-offset-m>
<heading-offset-deg type="double">-90.0</heading-offset-deg>
<pitch-offset-deg type="double">-2.0</pitch-offset-deg>
<from-model-idx type="int">0</from-model-idx>
<ground-level-nearplane-m type="double">0.5f</ground-level-nearplane-m>
<default-field-of-view-deg type="double">90.0</default-field-of-view-deg>
<default-pitch-deg type="double">-2.0</default-pitch-deg>
<default-heading-deg type="double">0</default-heading-deg>
<front-direction-deg type="double">0</front-direction-deg>
<front-left-direction-deg type="double">45</front-left-direction-deg>
<left-direction-deg type="double">90</left-direction-deg>
<back-left-direction-deg type="double">135</back-left-direction-deg>
<back-direction-deg type="double">180</back-direction-deg>
<back-right-direction-deg type="double">225</back-right-direction-deg>
<right-direction-deg type="double">270</right-direction-deg>
<front-right-direction-deg type="double">315</front-right-direction-deg>
<dynamic-view type="bool">true</dynamic-view>
</config>
</view>

<!-- View from the officer's seat -->
<view n="103">
<name>Officer View</name>
<enabled type="bool">true</enabled>
<type>lookfrom</type>
<internal type="bool">true</internal>
<config>
<from-model type="bool">true</from-model>
<from-model-idx type="int">true</from-model-idx>
<!-- x/y/z == right/up/back -->
<x-offset-m archive="y"> 0.0</x-offset-m>
<y-offset-m archive="y"> 1.27</y-offset-m>
<z-offset-m archive="y">-17.6</z-offset-m>
<heading-offset-deg type="double"> 0.0</heading-offset-deg>
<pitch-offset-deg type="double">-5.0</pitch-offset-deg>
<ground-level-nearplane-m type="double">0.5f</ground-level-nearplane-m>
<default-field-of-view-deg type="double">70.0</default-field-of-view-deg>
<default-pitch-deg type="double">-5.0</default-pitch-deg>
<default-heading-deg type="double">0</default-heading-deg>
<front-direction-deg type="double">0</front-direction-deg>
<dynamic-view type="bool">true</dynamic-view>
</config>
</view>

<!-- Close-up view of the overhead panel -->
<view n="104">
<name>Overhead View</name>
<enabled type="bool">true</enabled>
<type>lookfrom</type>
<internal type="bool">true</internal>
<config>
<from-model type="bool">true</from-model>
<from-model-idx type="int">true</from-model-idx>
<!-- x/y/z == right/up/back -->
<x-offset-m archive="y"> 0.0</x-offset-m>
<y-offset-m archive="y"> 0.9</y-offset-m>
<z-offset-m archive="y">-18.45</z-offset-m>
<heading-offset-deg type="double"> 0.0</heading-offset-deg>
<pitch-offset-deg type="double">75.0</pitch-offset-deg>
<ground-level-nearplane-m type="double">0.5f</ground-level-nearplane-m>
<default-field-of-view-deg type="double">102.0</default-field-of-view-deg>
<default-pitch-deg type="double">-5.0</default-pitch-deg>
<default-heading-deg type="double">0</default-heading-deg>
<front-direction-deg type="double">0</front-direction-deg>
<dynamic-view type="bool">true</dynamic-view>
</config>
</view>

<!-- Close-up view of the pilot CDU and cockpit radar-->
<view n="107">
<name>CDU View</name>
<enabled type="bool">true</enabled>
<type>lookfrom</type>
<internal type="bool">true</internal>
<config>
<from-model type="bool">true</from-model>
<from-model-idx type="int">true</from-model-idx>
<!-- x/y/z == right/up/back -->
<x-offset-m archive="y">-0.12</x-offset-m>
<y-offset-m archive="y">1.0</y-offset-m>
<z-offset-m archive="y">-18.72</z-offset-m>
<heading-offset-deg type="double"> 0.0</heading-offset-deg>
<pitch-offset-deg type="double">-67</pitch-offset-deg>
<ground-level-nearplane-m type="double">0.5f</ground-level-nearplane-m>
<default-field-of-view-deg type="double">76.0</default-field-of-view-deg>
<default-pitch-deg type="double">-5.0</default-pitch-deg>
<default-heading-deg type="double">0</default-heading-deg>
<front-direction-deg type="double">0</front-direction-deg>
<dynamic-view type="bool">true</dynamic-view>
<limits>
<enabled type="bool">true</enabled>
<left>
<heading-max-deg type="double">0.00001</heading-max-deg>
<heading-max-deg type="double">0.00001</heading-max-deg>
</left>
<right>
<heading-max-deg type="double">0.00001</heading-max-deg>
<pitch-max-deg type="double">0.00001</pitch-max-deg>
</right>
<up>
<pitch-max-deg type="double">0.00001</pitch-max-deg>
</up>
<down>
<pitch-max-deg type="double">0.00001</pitch-max-deg>
</down>
</limits>
</config>
</view>

</PropertyList>
Loading