Ignore:
Timestamp:
07/21/12 12:43:34 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

Documented the non-GUI modules

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/pyuipc_sim.py

    r273 r298  
    1 # Simulator for the pyuipc module
    2 #------------------------------------------------------------------------------
    31
    42import const
     
    1614#------------------------------------------------------------------------------
    1715
    18 # Version constants
     16## @package mlx.pyuipc_sim
     17#
     18# Simulator of the PyUIPC module.
     19#
     20# This is a simulation of the PyUIPC module emulating offsets that are needed
     21# by the logger.
     22#
     23# This module can also be run as a program, in which case it connects to an
     24# already running logger (that uses this module in place of the real pyuipc),
     25# and various commands can be given to query or modify the values of the
     26# offsets. There is a 'help' command and completion also works.
     27#
     28# This module is used instead of the real PyUIPC module, if the program is not
     29# running on Windows or the FORCE_PYUIPC_SIM environment variable is present.
     30
     31#------------------------------------------------------------------------------
     32#------------------------------------------------------------------------------
     33
     34## Version constants
    1935SIM_ANY=0
    2036SIM_FS98=1
     
    2945#------------------------------------------------------------------------------
    3046
    31 # Error constants
     47## Error constants
    3248ERR_OK=0
    3349ERR_OPEN=1
     
    4965#------------------------------------------------------------------------------
    5066
    51 # The version of FSUIPC
     67## The version of FSUIPC
    5268fsuipc_version=0x0401
    5369lib_version=0x0302
     
    100116class Values(object):
    101117    """The values that can be read from 'FSUIPC'."""
    102     # Fuel data index: centre tank
     118    ## Fuel data index: centre tank
    103119    FUEL_CENTRE = 0
    104120
    105     # Fuel data index: left main tank
     121    ## Fuel data index: left main tank
    106122    FUEL_LEFT = 1
    107123
    108     # Fuel data index: right main tank
     124    ## Fuel data index: right main tank
    109125    FUEL_RIGHT = 2
    110126
    111     # Fuel data index: left aux tank
     127    ## Fuel data index: left aux tank
    112128    FUEL_LEFT_AUX = 3
    113129
    114     # Fuel data index: right aux tank
     130    ## Fuel data index: right aux tank
    115131    FUEL_RIGHT_AUX = 4
    116132
    117     # Fuel data index: left tip tank
     133    ## Fuel data index: left tip tank
    118134    FUEL_LEFT_TIP = 5
    119135
    120     # Fuel data index: right tip tank
     136    ## Fuel data index: right tip tank
    121137    FUEL_RIGHT_TIP = 6
    122138
    123     # Fuel data index: external 1 tank
     139    ## Fuel data index: external 1 tank
    124140    FUEL_EXTERNAL_1 = 7
    125141
    126     # Fuel data index: external 2 tank
     142    ## Fuel data index: external 2 tank
    127143    FUEL_EXTERNAL_2 = 8
    128144
    129     # Fuel data index: centre 2 tank
     145    ## Fuel data index: centre 2 tank
    130146    FUEL_CENTRE_2 = 9
    131147
    132     # The number of fuel tank entries
     148    ## The number of fuel tank entries
    133149    NUM_FUEL = FUEL_CENTRE_2 + 1
    134150
    135     # Engine index: engine #1
     151    ## Engine index: engine #1
    136152    ENGINE_1 = 0
    137153
    138     # Engine index: engine #2
     154    ## Engine index: engine #2
    139155    ENGINE_2 = 1
    140156
    141     # Engine index: engine #3
     157    ## Engine index: engine #3
    142158    ENGINE_3 = 2
    143159
    144     # The number of hotkey entries
     160    ## The number of hotkey entries
    145161    HOTKEY_SIZE = 56
    146162
Note: See TracChangeset for help on using the changeset viewer.