Changeset 919:2ce8ca39525b for src/mlx/acft.py
 Timestamp:
 03/24/19 08:15:59 (4 years ago)
 Branch:
 python3
 hgPhase:
 (<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

src/mlx/acft.py
r905 r919 1 1 2 import const3 import gates4 import checks5 import fs6 from i18n import xstr7 import util2 from . import const 3 from . import gates 4 from . import checks 5 from . import fs 6 from .i18n import xstr 7 from . import util 8 8 9 9 import sys … … 308 308 ("" if value is None else "enabled" if value else "disabled",) 309 309 elif dt!=DERATE_NONE: 310 print "mlx.acft.getDerateLine: invalid derate type: " + dt310 print("mlx.acft.getDerateLine: invalid derate type: " + dt) 311 311 312 312 return None … … 343 343 self._aircraftState, aircraftState) 344 344 except: 345 print >> sys.stderr, "Checker", checker, "failed"345 print("Checker", checker, "failed", file=sys.stderr) 346 346 traceback.print_exc() 347 347 … … 351 351 self._minVS = min(self._minVS, aircraftState.vs) 352 352 except: 353 print >> sys.stderr, "Failed to handle the state"353 print("Failed to handle the state", file=sys.stderr) 354 354 traceback.print_exc() 355 355 finally: … … 403 403 self._logQNH(aircraftState) 404 404 elif newStage==const.STAGE_GOAROUND: 405 from logger import Logger405 from .logger import Logger 406 406 self._flight.handleFault("goaround", 407 407 aircraftState.timestamp, … … 1284 1284 value = SmoothedValue() 1285 1285 1286 print "Adding 1, 12.0"1286 print("Adding 1, 12.0") 1287 1287 value.add(1, 12.0) 1288 print value.get()1289 1290 print "Adding 1, 15.0"1288 print(value.get()) 1289 1290 print("Adding 1, 15.0") 1291 1291 value.add(1, 15.0) 1292 print value.get()1293 1294 print "Adding 2, 18.0"1292 print(value.get()) 1293 1294 print("Adding 2, 18.0") 1295 1295 value.add(2, 18.0) 1296 print value.get()1297 1298 print "Adding 2, 20.0"1296 print(value.get()) 1297 1298 print("Adding 2, 20.0") 1299 1299 value.add(2, 20.0) 1300 print value.get()1301 1302 print "Adding 5, 22.0"1300 print(value.get()) 1301 1302 print("Adding 5, 22.0") 1303 1303 value.add(5, 22.0) 1304 print value.get()1305 1306 print "Adding 5, 25.0"1304 print(value.get()) 1305 1306 print("Adding 5, 25.0") 1307 1307 value.add(5, 25.0) 1308 print value.get()1309 1310 print "Adding 5, 29.0"1308 print(value.get()) 1309 1310 print("Adding 5, 29.0") 1311 1311 value.add(5, 29.0) 1312 print value.get()1313 1314 print "Adding 5, 21.0"1312 print(value.get()) 1313 1314 print("Adding 5, 21.0") 1315 1315 value.add(5, 21.0) 1316 print value.get()1317 1318 print "Adding 5, 26.0"1316 print(value.get()) 1317 1318 print("Adding 5, 26.0") 1319 1319 value.add(5, 26.0) 1320 print value.get()1321 1322 print "Adding 2, 30.0"1320 print(value.get()) 1321 1322 print("Adding 2, 30.0") 1323 1323 value.add(2, 30.0) 1324 print value.get()1325 1326 print "Adding 2, 55.0"1324 print(value.get()) 1325 1326 print("Adding 2, 55.0") 1327 1327 value.add(2, 55.0) 1328 print value.get()1329 1330 # 1328 print(value.get()) 1329 1330 #
Note:
See TracChangeset
for help on using the changeset viewer.