- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/fsuipc.py
r443 r412 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 @property2058 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 state2069 2070 #------------------------------------------------------------------------------2071 2072 2045 _genericModels = { const.AIRCRAFT_B736 : B737Model, 2073 2046 const.AIRCRAFT_B737 : B737Model, … … 2085 2058 const.AIRCRAFT_T134 : T134Model, 2086 2059 const.AIRCRAFT_T154 : T154Model, 2087 const.AIRCRAFT_YK40 : YK40Model, 2088 const.AIRCRAFT_B462 : B462Model } 2060 const.AIRCRAFT_YK40 : YK40Model } 2089 2061 2090 2062 #------------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.