Changeset 709:44177c159b98 for src/mlx


Ignore:
Timestamp:
10/25/15 10:01:43 (9 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
cef
Phase:
public
Message:

Added support for SimBrief data for each aircraft type (re #279).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/acft.py

    r644 r709  
    8585#---------------------------------------------------------------------------------------
    8686
     87class SimBriefData(object):
     88    """Data to be used when creating SimBrief briefings."""
     89    def __init__(self, climbProfiles, cruiseProfiles, descentProfiles):
     90        """Construct the SimBrief data with the given profiles."""
     91        self.climbProfiles = climbProfiles
     92        self.cruiseProfiles = cruiseProfiles
     93        self.descentProfiles = descentProfiles
     94
     95#---------------------------------------------------------------------------------------
     96
    8797class Aircraft(object):
    8898    """Base class for aircraft."""
     
    123133        self.maxTouchDownPitch = 15.0
    124134        self.brakeCoolTime = 10.0
     135
     136        self.simBriefData = None
    125137
    126138        self._checkers = []
     
    720732        self.maxTakeOffPitch = 16.2
    721733        self.maxTouchDownPitch = 14.7
     734        self.simBriefData = SimBriefData(["250/280/78"],
     735                                         ["CI", "M75", "M78", "M79", "M80", "LRC"],
     736                                         ["78/280/250"])
    722737
    723738#---------------------------------------------------------------------------------------
     
    733748        self.maxTakeOffPitch = 14.7
    734749        self.maxTouchDownPitch = 13.2
     750        self.simBriefData = SimBriefData(["250/280/78"],
     751                                         ["CI", "M75", "M78", "M79", "M80", "LRC"],
     752                                         ["78/280/250", "78/250/250"])
    735753
    736754#---------------------------------------------------------------------------------------
     
    746764        self.maxTakeOffPitch = 11
    747765        self.maxTouchDownPitch = 9.5
     766        self.simBriefData = SimBriefData(["250/280/78"],
     767                                         ["CI", "M76", "M78", "M79", "M80", "LRC"],
     768                                         ["78/280/250", "78/250/250"])
    748769
    749770#---------------------------------------------------------------------------------------
     
    754775        super(B738Charter, self).__init__(flight)
    755776        self.mtow = 77791
     777        self.simBriefData = SimBriefData(["AUTO"],
     778                                         ["280/M74"],
     779                                         ["AUTO"])
    756780
    757781#---------------------------------------------------------------------------------------
     
    826850        self.maxTakeOffPitch = 8.0
    827851        self.maxTouchDownPitch = 7.0
     852        self.simBriefData = SimBriefData(["I-900", "II-900", "III-900",
     853                                          "I-850", "II-850", "III-850"],
     854                                         ["MCR", "ISC", "LRC", "HSC"],
     855                                         ["I-850", "II-850", "III-850"])
    828856
    829857#---------------------------------------------------------------------------------------
     
    878906        self.maxTakeOffPitch = 9.6
    879907        self.maxTouchDownPitch = 8.1
     908        self.simBriefData = SimBriefData(["250/290/78"],
     909                                         ["CI", "M76", "M78", "M80", "M82", "M84", "LRC"],
     910                                         ["78/290/250"])
    880911
    881912#---------------------------------------------------------------------------------------
     
    902933        self.maxTakeOffPitch = 18.0
    903934        self.maxTouchDownPitch = 18.0
     935        self.simBriefData = SimBriefData(["250/70", "290/74"],
     936                                         ["CI", "LRC", "M70", "M72", "M74", "M77", "M80"],
     937                                         ["74/290/250", "77/320/250"])
    904938
    905939#---------------------------------------------------------------------------------------
     
    10451079        self.maxTakeOffPitch = 16.0
    10461080        self.maxTouchDownPitch = 16.0
     1081        self.simBriefData = SimBriefData(["AUTO"],
     1082                                         ["300/M80"],
     1083                                         ["AUTO"])
    10471084
    10481085    @property
Note: See TracChangeset for help on using the changeset viewer.