Changeset 23:5e76dc3e8f7d for src


Ignore:
Timestamp:
02/15/12 20:03:26 (13 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

The N1 values starting at offset 0x2000 are used.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/fsuipc.py

    r21 r23  
    935935            self._engineStartIndex = len(data)
    936936            for i in range(0, self._numEngines):
    937                 self._addOffsetWithIndexMember(data, 0x0898 + i * 0x98, "H")  # N1
     937                self._addOffsetWithIndexMember(data, 0x2000 + i * 0x100, "f")  # N1
    938938                self._addOffsetWithIndexMember(data, 0x088c + i * 0x98, "h")  # throttle lever
    939939       
     
    958958        for i in range(self._engineStartIndex,
    959959                       self._engineStartIndex + 2*self._numEngines, 2):
    960             state.n1.append(data[i]*100.0/16384.0)
     960            state.n1.append(data[i])
    961961            state.reverser.append(data[i+1]<0)
    962962
Note: See TracChangeset for help on using the changeset viewer.