Ignore:
Timestamp:
06/10/12 12:50:30 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

Added the logging of the CoG value

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/pyuipc_sim.py

    r213 r243  
    261261        for i in range(0, Values.HOTKEY_SIZE):
    262262            self.hotkeyTable.append([0, 0, 0, 0])
     263
     264        self.cog = 0.27
    263265
    264266        self.pmdg_737ng_switches = 0
     
    438440        elif offset==0x2200:       # Engine #3 N1
    439441            return self.n1[self.ENGINE_3]
     442        elif offset==0x2ef8:       # Centre of Gravity
     443            return self.cog
    440444        elif offset==0x30c0:       # Gross weight
    441445            return (self.zfw + sum(self.fuelWeights)) * const.KGSTOLB
     
    659663        elif offset==0x2200:       # Engine #3 N1
    660664            self.n1[self.ENGINE_3] = value
     665        elif offset==0x2ef8:       # Centre of Gravity
     666            self.cog = value
    661667        elif offset==0x30c0:       # Gross weight
    662668            raise FSUIPCException(ERR_DATA)
     
    12531259                                                      lambda word: long(word, 16))
    12541260
     1261        self._valueHandlers["cog"] = (0x2ef8, "f", lambda value: value,
     1262                                       lambda word: float(word))
     1263
    12551264        self._valueHandlers["pmdg_737ng_switches"] = (0x6202, "b",
    12561265                                                      lambda value: value,
Note: See TracChangeset for help on using the changeset viewer.