Changeset 240:ec52afedd4ad for src


Ignore:
Timestamp:
06/07/12 14:57:57 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Fixed the calculation of the fuel level

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/fsuipc.py

    r212 r240  
    685685        for (tank, level) in levels:
    686686            offset = _tank2offset[tank]
    687             data.append( (offset, "u", long(level * 128.8 * 65536.0)) )
     687            value = long(level * 128.0 * 65536.0)
     688            data.append( (offset, "u", value) )
    688689        self._handler.requestWrite(data, self._handleFuelWritten)
    689690
Note: See TracChangeset for help on using the changeset viewer.