Ignore:
Timestamp:
05/01/12 09:14:13 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Reworked fuel tank handling to be more indirect

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/acft.py

    r139 r140  
    328328    The aircraft type-specific values in the aircraft state have the following
    329329    structure:
    330     - fuel: centre, left, right
     330    - fuel: left, centre, right
    331331    - n1: left, right
    332332    - reverser: left, right"""
     333    fuelTanks = [const.FUELTANK_LEFT, const.FUELTANK_CENTRE, const.FUELTANK_RIGHT]   
     334   
    333335    def __init__(self, flight):
    334336        super(Boeing737, self).__init__(flight)
     
    435437    The aircraft type-specific values in the aircraft state have the following
    436438    structure:
    437     - fuel: centre, left, right
     439    - fuel: left, right
    438440    - n1: left, right
    439441    - reverser: left, right."""
     442    fuelTanks = [const.FUELTANK_LEFT, const.FUELTANK_RIGHT]   
     443
    440444    def __init__(self, flight):
    441445        super(DH8D, self).__init__(flight)
     
    466470    The aircraft type-specific values in the aircraft state have the following
    467471    structure:
    468     - fuel: centre, left, right
     472    - fuel: left, centre, right
    469473    - n1: left, right
    470474    - reverser: left, right"""
     475    fuelTanks = [const.FUELTANK_LEFT, const.FUELTANK_CENTRE, const.FUELTANK_RIGHT]   
     476
    471477    def __init__(self, flight):
    472478        super(Boeing767, self).__init__(flight)
     
    518524    The aircraft type-specific values in the aircraft state have the following
    519525    structure:
    520     - fuel: centre, left, right
     526    - fuel: left, centre, right
    521527    - n1: left, right
    522528    - reverser: left, right."""
     529    fuelTanks = [const.FUELTANK_LEFT, const.FUELTANK_CENTRE, const.FUELTANK_RIGHT]   
     530
    523531    def __init__(self, flight):
    524532        super(CRJ2, self).__init__(flight)
     
    550558    The aircraft type-specific values in the aircraft state have the following
    551559    structure:
    552     - fuel: centre, left, right
     560    - fuel: left, centre, right
    553561    - n1: left, right
    554562    - reverser: left, right."""
     563    fuelTanks = [const.FUELTANK_LEFT, const.FUELTANK_CENTRE, const.FUELTANK_RIGHT]   
     564
    555565    def __init__(self, flight):
    556566        super(F70, self).__init__(flight)
     
    583593    The aircraft type-specific values in the aircraft state have the following
    584594    structure:
    585     - fuel: left, right, left aux, right aux
     595    - fuel: left aux, left, right, right aux
    586596    - rpm: left, right
    587597    - reverser: left, right."""
     598    fuelTanks = [const.FUELTANK_LEFT_AUX, const.FUELTANK_LEFT,
     599                 const.FUELTANK_RIGHT, const.FUELTANK_RIGHT_AUX]
     600
    588601    def __init__(self, flight):
    589602        super(DC3, self).__init__(flight)
     
    621634    The aircraft type-specific values in the aircraft state have the following
    622635    structure:
    623     - fuel: centre, left tip, left aux, right tip, right aux, external 1,
     636    - fuel: left tip, left aux, centre, right aux, right tip, external 1,
    624637    external 2
    625638    - n1: left, right
    626639    - reverser: left, right."""
     640    fuelTanks = [const.FUELTANK_LEFT_TIP, const.FUELTANK_LEFT_AUX,
     641                 const.FUELTANK_CENTRE,
     642                 const.FUELTANK_RIGHT_AUX, const.FUELTANK_RIGHT_TIP,
     643                 const.FUELTANK_EXTERNAL1, const.FUELTANK_EXTERNAL2]
     644
    627645    def __init__(self, flight):
    628646        super(T134, self).__init__(flight)
     
    655673    The aircraft type-specific values in the aircraft state have the following
    656674    structure:
    657     - fuel: centre, left, right, centre 2, left aux, right aux
     675    - fuel: left aux, left, centre, centre 2, right, right aux
    658676    - n1: left, centre, right
    659677    - reverser: left, right"""
     678    fuelTanks = [const.FUELTANK_LEFT_AUX, const.FUELTANK_LEFT,
     679                 const.FUELTANK_CENTRE, const.FUELTANK_CENTRE2,
     680                 const.FUELTANK_RIGHT, const.FUELTANK_RIGHT_AUX]
    660681    def __init__(self, flight):
    661682        super(T154, self).__init__(flight)
     
    691712    - n1: left, right
    692713    - reverser: left, right"""
     714    fuelTanks = [const.FUELTANK_LEFT, const.FUELTANK_RIGHT]
     715   
    693716    def __init__(self, flight):
    694717        super(YK40, self).__init__(flight)
Note: See TracChangeset for help on using the changeset viewer.