Changeset 799:959b8a49cde5 for src/mlx


Ignore:
Timestamp:
07/26/16 17:28:14 (8 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Some weights differing from the type default are set up for the appropriate tail numbers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/acft.py

    r798 r799  
    930930                                         ["78/290/250"])
    931931
     932    def setBookedFlight(self, bookedFlight):
     933        """Update the aircraft based on the booked flight data (e.g. tail number)."""
     934        if bookedFlight.tailNumber=="HA-LHD":
     935            self.mtow = 159210
     936            self.mlw = 126098
     937
    932938#---------------------------------------------------------------------------------------
    933939
     
    11171123        """Get the derate type for this type."""
    11181124        return DERATE_TUPOLEV
     1125
     1126    def setBookedFlight(self, bookedFlight):
     1127        """Update the aircraft based on the booked flight data (e.g. tail number)."""
     1128        if bookedFlight.tailNumber in ["HA-LCM", "HA-LCN", "HA-LCO", "HA-LCP",
     1129                                       "HA-LCR", "HA-LCU", "HA-LCV"]:
     1130            self.mtow = 100000
     1131            self.mlw = 80000
    11191132
    11201133    def _appendLightsLoggers(self):
Note: See TracChangeset for help on using the changeset viewer.