Skip to content

Commit

Permalink
fix: update cg for ELAC 103 (#7906)
Browse files Browse the repository at this point in the history
* Update CHANGELOG.md

* Update flight_model.cfg

* Update A32NX_PayloadManager.js

* Update flight_model.cfg

* Update CHANGELOG.md

* Update a20nv55.json

* Update Payload.tsx
  • Loading branch information
donstim authored Apr 2, 2023
1 parent 9a1e358 commit d9585cc
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 28 deletions.
1 change: 1 addition & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
1. [W/B] Phase 1 of refactoring payload (passenger and cargo) logic into rust systems (2Cas#1022)
1. [EFB] Allow payload page passenger seating to be manipulated via LocalVars - @2hwk (2Cas#1022)
1. [EFB] GW and GWCG display on payload page - @2hwk (2Cas#1022)
1. [FLIGHT MODEL/EFB] Updated CG for ELAC 103 - @donstim (donbikes#4084)

## 0.9.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ activate_cg_limit_based_on_mach = 0 ; Activate cg limitation depending on mach v
; Passenger baggage weight of 20 kg/pax is also added, making total pax + baggage weight = 104 kg/pax (i.e. Passenger weight on Simbrief)
; Starting load is 50% of capacity
max_number_of_stations = 10 ; Number of payload stations
station_load.0 = 3300, 20.0, 0, 5, ECONOMY ROWS 1-6 (seats: 36 max: 6670lbs/3024kg), 0
station_load.1 = 3850, 0.9, 0, 5.1, ECONOMY ROWS 7-13 (seats: 42 max: 7780lb/3530kg), 0
station_load.2 = 4400, -17.3, 0, 5.3, ECONOMY ROWS 14-21 (seats: 48 max: 8880lb/4032kg), 0
station_load.3 = 6600, -36.3, 0, 5.5, ECONOMY ROWS 22-29 (seats: 48 max: 8880lb/4032kg), 0
station_load.4 = 2800, 16.3, 0, 0.9, FWD BAGGAGE/CONTAINER (max: 7500lb/3402kg), 0
station_load.5 = 1950, -25.1, 0, 1, AFT CONTAINER (max: 5350lb/2426kg), 0
station_load.6 = 1700, -35.1, 0, 1.2, AFT BAGGAGE (max: 4650lb/2110kg), 0
station_load.7 = 1300, -44.4, 0, 1.4, AFT BULK/LOOSE (max: 3300lb/1497kg), 0
station_load.0 = 3300, 20.5, 0, 5, ECONOMY ROWS 1-6 (seats: 36 max: 6670lbs/3024kg), 0
station_load.1 = 3850, 1.5, 0, 5.1, ECONOMY ROWS 7-13 (seats: 42 max: 7780lb/3530kg), 0
station_load.2 = 4400, -16.6, 0, 5.3, ECONOMY ROWS 14-21 (seats: 48 max: 8880lb/4032kg), 0
station_load.3 = 6600, -35.6, 0, 5.5, ECONOMY ROWS 22-29 (seats: 48 max: 8880lb/4032kg), 0
station_load.4 = 2800, 17.3, 0, 0.9, FWD BAGGAGE/CONTAINER (max: 7500lb/3402kg), 0
station_load.5 = 1950, -24.1, 0, 1, AFT CONTAINER (max: 5350lb/2426kg), 0
station_load.6 = 1700, -34.1, 0, 1.2, AFT BAGGAGE (max: 4650lb/2110kg), 0
station_load.7 = 1300, -42.4, 0, 1.4, AFT BULK/LOOSE (max: 3300lb/1497kg), 0
station_load.8 = 1, 40.7, 0, 0, PILOT, 1
station_load.9 = 1, 40.7, 0, 0, CO-PILOT, 2

Expand Down Expand Up @@ -92,8 +92,8 @@ Engine.2 = Name:RightEngine#Index:2
Tank.1 = Name:Center#Title:TT:MENU.FUEL.CENTER#Capacity:2179#UnusableCapacity:0#Position:-4.5,0,1#Priority:1#OutputOnlyLines:TankCenterToCenterTankPump1,TankCenterToCenterTankPump2
Tank.2 = Name:LeftInner#Title:TT:MENU.FUEL.LEFT_INNER#Capacity:1816#UnusableCapacity:0#Position:-8,-13,2#Priority:2#InputOnlyLines:Eng1ToTank2,Xfer1ToTank2,Xfer1ToTank2_2#OutputOnlyLines:TankLeftToLeftTankPump1,TankLeftToLeftTankPump2
Tank.3 = Name:RightInner#Title:TT:MENU.FUEL.RIGHT_INNER#Capacity:1816#UnusableCapacity:0#Position:-8,13,2#Priority:2#InputOnlyLines:Eng2ToTank3,Xfer2ToTank3,Xfer2ToTank3_2#OutputOnlyLines:TankRightToRightTankPump1,TankRightToRightTankPump2
Tank.4 = Name:LeftOuter#Title:TT:MENU.FUEL.LEFT_OUTER#Capacity:228#UnusableCapacity:0#Position:-17.6,-27,3#Priority:3#OutputOnlyLines:Tank4ToXfer1,Tank4ToXfer1_2
Tank.5 = Name:RightOuter#Title:TT:MENU.FUEL.RIGHT_OUTER#Capacity:228#UnusableCapacity:0#Position:-17.6,27,3#Priority:3#OutputOnlyLines:Tank5ToXfer2,Tank5ToXfer2_2
Tank.4 = Name:LeftOuter#Title:TT:MENU.FUEL.LEFT_OUTER#Capacity:228#UnusableCapacity:0#Position:-16.9,-27,3#Priority:3#OutputOnlyLines:Tank4ToXfer1,Tank4ToXfer1_2
Tank.5 = Name:RightOuter#Title:TT:MENU.FUEL.RIGHT_OUTER#Capacity:228#UnusableCapacity:0#Position:-16.9,27,3#Priority:3#OutputOnlyLines:Tank5ToXfer2,Tank5ToXfer2_2
Line.1 = Name:TankCenterToCenterTankPump1#Source:Center#Destination:CenterTankPump1
Line.2 = Name:TankLeftToLeftTankPump1#Source:LeftInner#Destination:LeftInnerTankPump1
Line.3 = Name:TankRightToRightTankPump1#Source:RightInner#Destination:RightInnerTankPump1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,31 @@ class A32NX_PayloadConstructor {
seats: 36,
weight: Math.round(NXUnits.kgToUser(3024)),
stationIndex: 0 + 1,
position: 20.0,
position: 20.5,
simVar: "A32NX_PAX_A"

},
rows7_13: {
name: 'ROWS [7-13]',
seats: 42,
weight: Math.round(NXUnits.kgToUser(3530)),
stationIndex: 1 + 1,
position: 0.9,
position: 1.5,
simVar: "A32NX_PAX_B"
},
rows14_21: {
name: 'ROWS [14-21]',
seats: 48,
weight: Math.round(NXUnits.kgToUser(4032)),
stationIndex: 2 + 1,
position: -17.3,
position: -16.6,
simVar: "A32NX_PAX_C"
},
rows22_29: {
name: 'ROWS [22-29]',
seats: 48,
weight: Math.round(NXUnits.kgToUser(4032)),
stationIndex: 3 + 1,
position: -36.3,
position: -35.6,
simVar: "A32NX_PAX_D"
},
};
Expand All @@ -43,7 +42,7 @@ class A32NX_PayloadConstructor {
weight: Math.round(NXUnits.kgToUser(3402)),
load: 0,
stationIndex: 4 + 1,
position: 16.3,
position: 17.3,
visible: true,
simVar: 'A32NX_CARGO_FWD_BAGGAGE_CONTAINER',
},
Expand All @@ -52,7 +51,7 @@ class A32NX_PayloadConstructor {
weight: Math.round(NXUnits.kgToUser(2426)),
load: 0,
stationIndex: 5 + 1,
position: -25.1,
position: -24.1,
visible: true,
simVar: 'A32NX_CARGO_AFT_CONTAINER',
},
Expand All @@ -61,7 +60,7 @@ class A32NX_PayloadConstructor {
weight: Math.round(NXUnits.kgToUser(2110)),
load: 0,
stationIndex: 6 + 1,
position: -35.1,
position: -34.1,
visible: true,
simVar: 'A32NX_CARGO_AFT_BAGGAGE',
},
Expand All @@ -70,7 +69,7 @@ class A32NX_PayloadConstructor {
weight: Math.round(NXUnits.kgToUser(1497)),
load: 0,
stationIndex: 7 + 1,
position: -44.4,
position: -42.4,
visible: true,
simVar: 'A32NX_CARGO_AFT_BULK_LOOSE',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
}
],
"stationIndex": 1,
"position": 20.0,
"position": 20.5,
"fill": 0.19,
"simVar": "A32NX_PAX_A"
},
Expand Down Expand Up @@ -388,7 +388,7 @@
}
],
"stationIndex": 2,
"position": 0.9,
"position": 1.5,
"fill": 0.25,
"simVar": "A32NX_PAX_B"
},
Expand Down Expand Up @@ -614,7 +614,7 @@
}
],
"stationIndex": 3,
"position": -17.3,
"position": -16.6,
"fill": 0.28,
"simVar": "A32NX_PAX_C"
},
Expand Down Expand Up @@ -841,7 +841,7 @@
],
"fill": 0.28,
"stationIndex": 4,
"position": -36.3,
"position": -35.6,
"simVar": "A32NX_PAX_D"
}
],
Expand All @@ -850,31 +850,31 @@
"name": "FWD BAGGAGE/CONTAINER",
"weight": 3402,
"stationIndex": 5,
"position": 16.3,
"position": 17.3,
"progressBarWidth": 160,
"simVar": "A32NX_CARGO_FWD_BAGGAGE_CONTAINER"
},
{
"name": "AFT CONTAINER",
"weight": 2426,
"stationIndex": 6,
"position": -25.1,
"position": -24.1,
"progressBarWidth": 100,
"simVar": "A32NX_CARGO_AFT_CONTAINER"
},
{
"name": "AFT BAGGAGE",
"weight": 2110,
"stationIndex": 7,
"position": -35.1,
"position": -34.1,
"progressBarWidth": 100,
"simVar": "A32NX_CARGO_AFT_BAGGAGE"
},
{
"name": "AFT BULK/LOOSE",
"weight": 1497,
"stationIndex": 8,
"position": -44.4,
"position": -42.4,
"progressBarWidth": 100,
"simVar": "A32NX_CARGO_AFT_BULK_LOOSE"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ export const Payload = () => {
// Note: Looks messy after phase 1 refactor, will be fixed by deprecating this and moving all calculations into rust
const centerTankMoment = -4.5;
const innerTankMoment = -8;
const outerTankMoment = -17.6;
const outerTankMoment = -16.9;
// Adjust ZFW CG Values based on payload
const newZfw = emptyWeight + totalPax * paxWeight + totalCargo;
const newZfwDesired = emptyWeight + totalPaxDesired * paxWeight + totalCargoDesired;
Expand Down

0 comments on commit d9585cc

Please sign in to comment.