Changeset 150:0a6ffbd72d7e


Ignore:
Timestamp:
05/05/12 11:00:28 (13 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Updated the fuel logging to the new order

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/acft.py

    r141 r150  
    351351        self.logger.message(aircraftState.timestamp,
    352352                            "Fuel: left=%.0f kg - centre=%.0f kg - right=%.0f kg" % \
    353                             (aircraftState.fuel[1], aircraftState.fuel[0],
     353                            (aircraftState.fuel[0], aircraftState.fuel[1],
    354354                             aircraftState.fuel[2]))
    355355        self.logger.message(aircraftState.timestamp,
     
    457457        """Log the amount of fuel"""
    458458        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]))
    462461        self.logger.message(aircraftState.timestamp,
    463462                            "Total fuel: %.0f kg" % (sum(aircraftState.fuel),))
     
    490489        self.logger.message(aircraftState.timestamp,
    491490                            "Fuel: left=%.0f kg - centre=%.0f kg - right=%.0f kg" % \
    492                             (aircraftState.fuel[1], aircraftState.fuel[0],
     491                            (aircraftState.fuel[0], aircraftState.fuel[1],
    493492                             aircraftState.fuel[2]))
    494493        self.logger.message(aircraftState.timestamp,
     
    546545        self.logger.message(aircraftState.timestamp,
    547546                            "Fuel: left=%.0f kg - centre=%.0f kg - right=%.0f kg" % \
    548                             (aircraftState.fuel[1], aircraftState.fuel[0],
     547                            (aircraftState.fuel[0], aircraftState.fuel[1],
    549548                             aircraftState.fuel[2]))
    550549        self.logger.message(aircraftState.timestamp,
     
    581580        self.logger.message(aircraftState.timestamp,
    582581                            "Fuel: left=%.0f kg - centre=%.0f kg - right=%.0f kg" % \
    583                             (aircraftState.fuel[1], aircraftState.fuel[0],
     582                            (aircraftState.fuel[0], aircraftState.fuel[1],
    584583                             aircraftState.fuel[2]))
    585584        self.logger.message(aircraftState.timestamp,
     
    622621        self.logger.message(aircraftState.timestamp,
    623622                            "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]))
    626625        self.logger.message(aircraftState.timestamp,
    627626                            "Total fuel: %.0f kg" % (sum(aircraftState.fuel),))
     
    659658        self.logger.message(aircraftState.timestamp,
    660659                            "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],
    664663                             aircraftState.fuel[5], aircraftState.fuel[6]))
    665664        self.logger.message(aircraftState.timestamp,
     
    695694        self.logger.message(aircraftState.timestamp,
    696695                            "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]))
    700699        self.logger.message(aircraftState.timestamp,
    701700                            "Total fuel: %.0f kg" % (sum(aircraftState.fuel),))
Note: See TracChangeset for help on using the changeset viewer.