Changeset 313:8a6711d8fbcc for src


Ignore:
Timestamp:
08/19/12 05:43:38 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Changed the way the ZFW is logged

Location:
src/mlx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/acft.py

    r311 r313  
    230230                self._flight.logFuel(aircraftState)
    231231                self.logger.message(aircraftState.timestamp,
    232                                     "Zero-fuel weight: %.0f kg" % (aircraftState.zfw))
     232                                    "ZFW: %.2f kg" % (aircraftState.zfw))
    233233                flight = self._flight
    234234                if flight.v1 is None or flight.vr is None or flight.v2 is None:
  • src/mlx/web.py

    r312 r313  
    707707                                                    pirep.flightTimeStart)
    708708        data["timecomm"] = pirep.getTimeComment()
    709         data["fuel"] = "%.0f" % (pirep.fuelUsed,)
     709        data["fuel"] = "%.2f" % (pirep.fuelUsed,)
    710710        data["dep_rwy"] = pirep.departureRunway
    711711        data["arr_rwy"] = pirep.arrivalRunway
Note: See TracChangeset for help on using the changeset viewer.