Board index FlightGear Development Aircraft

How to change the amount of each type of seat

Questions and discussion about creating aircraft. Flight dynamics, 3d models, cockpits, systems, animation, textures.

How to change the amount of each type of seat

Postby Bsundin » Fri Jul 09, 2021 3:34 am

I was curious how to change the number of seats in aircraft, specifically the 777-300er. I would like to make an all business 777. I'm not sure if you could just edit the xml files or what, but any help would be appreciated. (Also, this is my first post on the FlightGear forum, so if I did something wrong, let me know.)
Bsundin
 
Posts: 3
Joined: Fri Jul 09, 2021 3:29 am

Re: How to change the amount of each type of seat

Postby Johan G » Fri Jul 09, 2021 6:33 am

The seating arrangement, would that be in a dialog about weight and passengers, or is it in the 3D model of the cabin?
Low-level flying — It's all fun and games till someone looses an engine. (Paraphrased from a YouTube video)
Improving the Dassault Mirage F1 (Wiki, Forum, GitLab. Work in slow progress)
Some YouTube videos
Johan G
Moderator
 
Posts: 6629
Joined: Fri Aug 06, 2010 6:33 pm
Location: Sweden
Callsign: SE-JG
IRC name: Johan_G
Version: 2020.3.4
OS: Windows 10, 64 bit

Re: How to change the amount of each type of seat

Postby Bsundin » Fri Jul 09, 2021 6:34 am

A dialog about weight and passengers.
Bsundin
 
Posts: 3
Joined: Fri Jul 09, 2021 3:29 am

Re: How to change the amount of each type of seat

Postby Johan G » Fri Jul 09, 2021 6:45 am

While a bit tedious it should probably be be possible tho change that dialog by editing the /Aircraft/777/gui/dialogs/payload-dlg.xml file.

Possibly the $FG_ROOT/Docs/README.gui * readme file will be of help. :wink:
____
* $FG_ROOT is the ../data/ directory of your FlightGear installation.
Low-level flying — It's all fun and games till someone looses an engine. (Paraphrased from a YouTube video)
Improving the Dassault Mirage F1 (Wiki, Forum, GitLab. Work in slow progress)
Some YouTube videos
Johan G
Moderator
 
Posts: 6629
Joined: Fri Aug 06, 2010 6:33 pm
Location: Sweden
Callsign: SE-JG
IRC name: Johan_G
Version: 2020.3.4
OS: Windows 10, 64 bit

Re: How to change the amount of each type of seat

Postby wlbragg » Fri Jul 09, 2021 6:35 pm

The seating arrangement, would that be in a dialog about weight and passengers, or is it in the 3D model of the cabin?


The Fuel and Payload "dialog" is basically referring to the data in the set.xml file contained in the payload tag which in turn allows flexibility in passenger or baggage weight and is related to the entries managing points of weight in the aircraft's fdm.xml..
Code: Select all
    <payload>
        <weight>
            <name type="string">Pilot</name>
            <weight-lb alias="/fdm/jsbsim/inertia/pointmass-weight-lbs[0]"/>
            <arm-in alias="/fdm/jsbsim/inertia/pointmass-location-X-inches[0]"/>
            <min-lb type="double">0.0</min-lb>
            <max-lb type="double">300.0</max-lb>
        </weight>
        <weight>
            <name type="string">Co-Pilot</name>
            <weight-lb alias="/fdm/jsbsim/inertia/pointmass-weight-lbs[1]"/>
            <arm-in alias="/fdm/jsbsim/inertia/pointmass-location-X-inches[0]"/>
            <min-lb type="double">0.0</min-lb>
            <max-lb type="double">300.0</max-lb>
        </weight>
        <weight>
            <name type="string">Left Passenger</name>
            <weight-lb alias="/fdm/jsbsim/inertia/pointmass-weight-lbs[2]"/>
            <arm-in alias="/fdm/jsbsim/inertia/pointmass-location-X-inches[0]"/>
            <min-lb type="double">0.0</min-lb>
            <max-lb type="double">300.0</max-lb>
        </weight>
        <weight>
            <name type="string">Right Passenger</name>
            <weight-lb alias="/fdm/jsbsim/inertia/pointmass-weight-lbs[3]"/>
            <arm-in alias="/fdm/jsbsim/inertia/pointmass-location-X-inches[0]"/>
            <min-lb type="double">0.0</min-lb>
            <max-lb type="double">300.0</max-lb>
        </weight>
        <weight>
            <name type="string">Baggage</name>
            <weight-lb alias="/fdm/jsbsim/inertia/pointmass-weight-lbs[4]"/>
            <arm-in alias="/fdm/jsbsim/inertia/pointmass-location-X-inches[0]"/>
            <min-lb type="double">0.0</min-lb>
            <max-lb type="double">150.0</max-lb>
            <!-- WARNING: Max baggage "by the book" is 120lbs or less! -->
        </weight>
        <pax-state type="int">0</pax-state>
        <securing-state type="int">0</securing-state>
    </payload>


The actual FDM changes require pointmass additions or location changes under the mass_balance tag in the main fdm.xml file.
Code: Select all
<mass_balance>
        <ixx unit="SLUG*FT2"> 948 </ixx>
        <iyy unit="SLUG*FT2"> 1285 </iyy>
        <izz unit="SLUG*FT2"> 1906 </izz>
        <ixy unit="SLUG*FT2"> -0 </ixy>
        <ixz unit="SLUG*FT2"> -0 </ixz>
        <iyz unit="SLUG*FT2"> -0 </iyz>
        <emptywt unit="LBS"> 1467 </emptywt>
        <location name="CG" unit="IN">
            <x> 39.06 </x>
            <y> 0 </y>
            <z> 34 </z>
        </location>

        <pointmass name="Pilot">
            <weight unit="LBS"> 180 </weight>
            <location name="POINTMASS" unit="IN">
                <x> 36 </x>
                <y> -14 </y>
                <z> 24 </z>
            </location>
        </pointmass>

        <pointmass name="Co-Pilot">
            <weight unit="LBS"> 0 </weight>
            <location name="POINTMASS" unit="IN">
                <x> 36 </x>
                <y> 14 </y>
                <z> 24 </z>
            </location>
        </pointmass>

        <pointmass name="Left Passenger">
            <weight unit="LBS"> 0 </weight>
            <location name="POINTMASS" unit="IN">
                <x> 70 </x>
                <y> -14 </y>
                <z> 24 </z>
            </location>
        </pointmass>

        <pointmass name="Right Passenger">
            <weight unit="LBS"> 0 </weight>
            <location name="POINTMASS" unit="IN">
                <x> 70 </x>
                <y> 14 </y>
                <z> 24 </z>
            </location>
        </pointmass>

        <pointmass name="Baggage">
            <weight unit="LBS"> 0 </weight>
            <location name="POINTMASS" unit="IN">
                <x> 95 </x>
                <y>  0 </y>
                <z> 24 </z>
            </location>
        </pointmass>
...
...
</mass_balance>


The above is referencing JSBSim.

For YASim it's a bit different. These changes are listed In the same order as above in respect to the location of the changes required.

The Fuel and Payload "dialog" is referring to the data in the set.xml file contained in the sim tag which in turn allows flexibility in passenger or baggage weight and is related to the entries managing points of weight in the aircraft's fdm.xml.
Code: Select all
    <weight n="0">
      <name>Pilot</name>
      <weight-lb>180</weight-lb>
      <max-lb>300</max-lb>
    </weight>

    <weight n="1">
      <name>Co-Pilot</name>
      <weight-lb>180</weight-lb>
      <max-lb>300</max-lb>
    </weight>

    <weight n="2">
      <name>Right Passenger</name>
      <weight-lb>0</weight-lb>
      <max-lb>300</max-lb>
    </weight>

    <weight n="3">
      <name>Load</name>
      <weight-lb>0</weight-lb>
      <max-lb>20000</max-lb>
    </weight>


The actual FDM changes require weight additions or location changes in the main fdm.xml file.
Code: Select all
    <!-- pilot -->
  <weight x="8.6" y=".53" z="-2." mass-prop="/sim/weight[0]/weight-lb"/>

  <!-- co-pilot -->
  <weight x="8.6" y="-.53" z="-2." mass-prop="/sim/weight[1]/weight-lb"/>

  <!-- operator -->
  <weight x="7.4" y=".47" z="-.5" mass-prop="/sim/weight[2]/weight-lb"/>

  <!-- load -->
  <weight x="2.6" y="0" z="-1.2" mass-prop="/sim/weight[3]/weight-lb"/>


To visualize this FDM change you would of course change the model.ac in both JSBsim or YASim.

It requires all three of these areas to represent the weights correctly.

You must also beware there could be considerable manipulation of these basic entry points by various mechanisms such as nasal and JSBsim level code. Such as is done in all most of the aircraft I have worked on.
It can get very complex.

But, I'll leave you with this. The type of modification your talking about is a great first project to dive into. On a basic aircraft it is pretty straight forward, requiring changes or additions to the area referred to above. Go for it. We're here to help you sort through it.
Kansas and Ohio/Midwest scenery development.
KEQA, 3AU, KRCP Airport Layout
Intel i7/GeForce RTX 2070/Max-Q
User avatar
wlbragg
 
Posts: 7586
Joined: Sun Aug 26, 2012 12:31 am
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/RTX 2070

Re: How to change the amount of each type of seat

Postby Bsundin » Fri Jul 09, 2021 8:29 pm

Thank you very much for all of your help.
Bsundin
 
Posts: 3
Joined: Fri Jul 09, 2021 3:29 am


Return to Aircraft

Who is online

Users browsing this forum: No registered users and 11 guests