|
From: <fli...@li...> - 2025-05-06 03:33:35
|
Revision: 12096
http://sourceforge.net/p/flightgear/fgaddon/12096
Author: octal450
Date: 2025-05-06 03:33:13 +0000 (Tue, 06 May 2025)
Log Message:
-----------
2024.1: MD-11: FMS fix
Modified Paths:
--------------
branches/release-2024.1/Aircraft/MD-11/Nasal/FMS/FlightData.nas
Modified: branches/release-2024.1/Aircraft/MD-11/Nasal/FMS/FlightData.nas
===================================================================
--- branches/release-2024.1/Aircraft/MD-11/Nasal/FMS/FlightData.nas 2025-05-06 03:32:36 UTC (rev 12095)
+++ branches/release-2024.1/Aircraft/MD-11/Nasal/FMS/FlightData.nas 2025-05-06 03:33:13 UTC (rev 12096)
@@ -89,8 +89,8 @@
gwLbs: props.globals.getNode("/systems/fms/flight-data/gw-lbs"),
landFlaps: props.globals.getNode("/systems/fms/flight-data/land-flaps"),
oatC: props.globals.getNode("/systems/fms/flight-data/oat-c"),
+ tocg: props.globals.getNode("/systems/fms/flight-data/tocg"),
toFlaps: props.globals.getNode("/systems/fms/flight-data/to-flaps"),
- tocg: props.globals.getNode("/systems/fms/flight-data/tocg"),
toPacks: props.globals.getNode("/systems/fms/flight-data/to-packs"),
toSlope: props.globals.getNode("/systems/fms/flight-data/to-slope"),
toWind: props.globals.getNode("/systems/fms/flight-data/to-wind"),
@@ -333,9 +333,9 @@
},
insertToAlts: func(t = 0) {
if (flightData.airportFromAlt > -1000) {
- if (t == 0 or t == 1) flightData.climbThrustAlt = math.max(flightData.climbThrustAltCalc = flightData.airportFromAlt + 1500, 0);
- if (t == 0 or t == 2) flightData.accelAlt = math.max(flightData.accelAltCalc = flightData.airportFromAlt + 3000, 0);
- if (t == 0 or t == 3) flightData.accelAltEo = math.max(flightData.accelAltEoCalc = flightData.airportFromAlt + 800, 0);
+ if (t == 0 or t == 1) flightData.climbThrustAlt = math.max(flightData.airportFromAlt + 1500, 0);
+ if (t == 0 or t == 2) flightData.accelAlt = math.max(flightData.airportFromAlt + 3000, 0);
+ if (t == 0 or t == 3) flightData.accelAltEo = math.max(flightData.airportFromAlt + 800, 0);
} else {
if (t == 0 or t == 1) flightData.climbThrustAlt = -1000;
if (t == 0 or t == 2) flightData.accelAlt = -1000;
|