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

Tanks with a capacity of less than 1.0 kg are not returned (re #168)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/fsuipc.py

    r401 r406  
    15601560        for fuelTank in self._fuelTanks:
    15611561            capacity = data[index+1] * fuelWeight * const.LBSTOKG
    1562             amount = data[index] * capacity / 128.0 / 65536.0
    1563             index += 2
    1564 
    1565             result.append( (fuelTank, amount, capacity) if addCapacities
    1566                            else (fuelTank, amount))
    1567             totalFuel += amount
     1562            if capacity>=1.0:
     1563                amount = data[index] * capacity / 128.0 / 65536.0
     1564                index += 2
     1565
     1566                result.append( (fuelTank, amount, capacity) if addCapacities
     1567                               else (fuelTank, amount))
     1568                totalFuel += amount
    15681569
    15691570        return (result, totalFuel)
Note: See TracChangeset for help on using the changeset viewer.