Changeset 150:0a6ffbd72d7e for src
- Timestamp:
- 05/05/12 11:00:28 (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/acft.py
r141 r150 351 351 self.logger.message(aircraftState.timestamp, 352 352 "Fuel: left=%.0f kg - centre=%.0f kg - right=%.0f kg" % \ 353 (aircraftState.fuel[ 1], aircraftState.fuel[0],353 (aircraftState.fuel[0], aircraftState.fuel[1], 354 354 aircraftState.fuel[2])) 355 355 self.logger.message(aircraftState.timestamp, … … 457 457 """Log the amount of fuel""" 458 458 self.logger.message(aircraftState.timestamp, 459 "Fuel: left=%.0f kg - centre=%.0f kg - right=%.0f kg" % \ 460 (aircraftState.fuel[1], aircraftState.fuel[0], 461 aircraftState.fuel[2])) 459 "Fuel: left=%.0f kg - right=%.0f kg" % \ 460 (aircraftState.fuel[0], aircraftState.fuel[1])) 462 461 self.logger.message(aircraftState.timestamp, 463 462 "Total fuel: %.0f kg" % (sum(aircraftState.fuel),)) … … 490 489 self.logger.message(aircraftState.timestamp, 491 490 "Fuel: left=%.0f kg - centre=%.0f kg - right=%.0f kg" % \ 492 (aircraftState.fuel[ 1], aircraftState.fuel[0],491 (aircraftState.fuel[0], aircraftState.fuel[1], 493 492 aircraftState.fuel[2])) 494 493 self.logger.message(aircraftState.timestamp, … … 546 545 self.logger.message(aircraftState.timestamp, 547 546 "Fuel: left=%.0f kg - centre=%.0f kg - right=%.0f kg" % \ 548 (aircraftState.fuel[ 1], aircraftState.fuel[0],547 (aircraftState.fuel[0], aircraftState.fuel[1], 549 548 aircraftState.fuel[2])) 550 549 self.logger.message(aircraftState.timestamp, … … 581 580 self.logger.message(aircraftState.timestamp, 582 581 "Fuel: left=%.0f kg - centre=%.0f kg - right=%.0f kg" % \ 583 (aircraftState.fuel[ 1], aircraftState.fuel[0],582 (aircraftState.fuel[0], aircraftState.fuel[1], 584 583 aircraftState.fuel[2])) 585 584 self.logger.message(aircraftState.timestamp, … … 622 621 self.logger.message(aircraftState.timestamp, 623 622 "Fuel: left aux=%.0f kg - left=%.0f kg - right=%.0f kg - right aux=%.0f kg" % \ 624 (aircraftState.fuel[ 2], aircraftState.fuel[0],625 aircraftState.fuel[ 1], aircraftState.fuel[3]))623 (aircraftState.fuel[0], aircraftState.fuel[1], 624 aircraftState.fuel[2], aircraftState.fuel[3])) 626 625 self.logger.message(aircraftState.timestamp, 627 626 "Total fuel: %.0f kg" % (sum(aircraftState.fuel),)) … … 659 658 self.logger.message(aircraftState.timestamp, 660 659 "Fuel: left aux=%.0f kg - left tip=%.0f kg - centre= %.0f kg - right tip=%.0f kg - right aux=%.0f kg - external 1=%.0f kg - external 2=%.0f kg" % \ 661 (aircraftState.fuel[ 2], aircraftState.fuel[1],662 aircraftState.fuel[ 0],663 aircraftState.fuel[ 3], aircraftState.fuel[4],660 (aircraftState.fuel[1], aircraftState.fuel[0], 661 aircraftState.fuel[2], 662 aircraftState.fuel[4], aircraftState.fuel[3], 664 663 aircraftState.fuel[5], aircraftState.fuel[6])) 665 664 self.logger.message(aircraftState.timestamp, … … 695 694 self.logger.message(aircraftState.timestamp, 696 695 "Fuel: left aux=%.0f kg - left=%.0f kg - centre=%.0f kg - centre 2=%.0f kg - right=%.0f kg - right aux=%.0f kg" % \ 697 (aircraftState.fuel[ 4], aircraftState.fuel[1],698 aircraftState.fuel[ 0], aircraftState.fuel[3],699 aircraftState.fuel[ 2], aircraftState.fuel[5]))696 (aircraftState.fuel[0], aircraftState.fuel[1], 697 aircraftState.fuel[2], aircraftState.fuel[3], 698 aircraftState.fuel[4], aircraftState.fuel[5])) 700 699 self.logger.message(aircraftState.timestamp, 701 700 "Total fuel: %.0f kg" % (sum(aircraftState.fuel),))
Note:
See TracChangeset
for help on using the changeset viewer.