- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/fsuipc.py
r412 r443 2043 2043 #------------------------------------------------------------------------------ 2044 2044 2045 class B462Model(GenericAircraftModel): 2046 """Generic model for the British Aerospace BAe 146-200 aircraft.""" 2047 fuelTanks = [const.FUELTANK_LEFT, const.FUELTANK_CENTRE, 2048 const.FUELTANK_RIGHT] 2049 2050 def __init__(self): 2051 """Construct the model.""" 2052 super(B462Model, self). \ 2053 __init__(flapsNotches = [0, 18, 24, 30, 33], 2054 fuelTanks = B462Model.fuelTanks, 2055 numEngines = 4) 2056 2057 @property 2058 def name(self): 2059 """Get the name for this aircraft model.""" 2060 return "FSUIPC/Generic British Aerospace 146" 2061 2062 def getAircraftState(self, aircraft, timestamp, data): 2063 """Get an aircraft state object for the given monitoring data. 2064 2065 This removes the reverser value for the middle engine.""" 2066 state = super(B462Model, self).getAircraftState(aircraft, timestamp, data) 2067 state.reverser = [] 2068 return state 2069 2070 #------------------------------------------------------------------------------ 2071 2045 2072 _genericModels = { const.AIRCRAFT_B736 : B737Model, 2046 2073 const.AIRCRAFT_B737 : B737Model, … … 2058 2085 const.AIRCRAFT_T134 : T134Model, 2059 2086 const.AIRCRAFT_T154 : T154Model, 2060 const.AIRCRAFT_YK40 : YK40Model } 2087 const.AIRCRAFT_YK40 : YK40Model, 2088 const.AIRCRAFT_B462 : B462Model } 2061 2089 2062 2090 #------------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.