- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/acft.py
r917 r905 97 97 class Aircraft(object): 98 98 """Base class for aircraft.""" 99 dowCockpit = 2100 dowCabin = 3101 102 99 @staticmethod 103 100 def create(flight, bookedFlight): … … 128 125 self._landingAntiIceLineID = None 129 126 130 self.cockpitCrewWeight = 85.0 131 self.cabinCrewWeight = 75.0 132 self.humanWeight = 84.0 127 self.humanWeight = 82.0 133 128 134 129 self.initialClimbSpeedAltitude = 1500 … … 834 829 class B734(Boeing737CL): 835 830 """Boeing 737-400 aircraft.""" 836 dow = 35100837 838 831 def __init__(self, flight): 839 832 super(B734, self).__init__(flight) 833 self.dow = 35100 840 834 self.mtow = 62822 841 835 self.mlw = 54885 … … 1249 1243 """Get the derate type for this type.""" 1250 1244 return DERATE_B462 1251 1252 #---------------------------------------------------------------------------------------1253 1254 class IL62(Aircraft):1255 """Ilyushin IL-62 aircraft.1256 1257 The aircraft type-specific values in the aircraft state have the following1258 structure:1259 - fuel: left, centre, right1260 - n1: left outer, left inner, right inner, right outer1261 - reverser: empty (the plane has no reversers)"""1262 dow = 695001263 1264 def __init__(self, flight):1265 super(B462, self).__init__(flight)1266 self.mtow = 1650001267 self.mlw = 1650001268 self.mzfw = 1650001269 self.gearSpeedLimit = 2101270 self.flapSpeedLimits = { 18 : 217,1271 24 : 180,1272 30 : 170,1273 33 : 150 }1274 1275 @property1276 def derateType(self):1277 """Get the derate type for this type."""1278 return DERATE_NONE1279 1245 1280 1246 #--------------------------------------------------------------------------------------- … … 1305 1271 const.AIRCRAFT_T154 : T154, 1306 1272 const.AIRCRAFT_YK40 : YK40, 1307 const.AIRCRAFT_B462 : B462, 1308 const.AIRCRAFT_IL62 : IL62 } 1273 const.AIRCRAFT_B462 : B462 } 1309 1274 1310 1275 #--------------------------------------------------------------------------------------- … … 1316 1281 #--------------------------------------------------------------------------------------- 1317 1282 1318 def setupTypes(aircraftTypes):1319 """Setup the values in the given types using the info retrieved1320 from the server."""1321 for aircraftTypeInfo in aircraftTypes:1322 clazz = getClass(aircraftTypeInfo.aircraftType)1323 1324 clazz.dow = aircraftTypeInfo.dow1325 clazz.dowCockpit = aircraftTypeInfo.dowCockpit1326 clazz.dowCabin = aircraftTypeInfo.dowCabin1327 1328 #---------------------------------------------------------------------------------------1329 1330 1283 if __name__ == "__main__": 1331 1284 value = SmoothedValue()
Note:
See TracChangeset
for help on using the changeset viewer.