Changeset 298:24c67ec5cdca for src/mlx/pyuipc_sim.py
- Timestamp:
- 07/21/12 12:43:34 (12 years ago)
- Branch:
- default
- hg-Phase:
- (<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/pyuipc_sim.py
r273 r298 1 # Simulator for the pyuipc module2 #------------------------------------------------------------------------------3 1 4 2 import const … … 16 14 #------------------------------------------------------------------------------ 17 15 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 19 35 SIM_ANY=0 20 36 SIM_FS98=1 … … 29 45 #------------------------------------------------------------------------------ 30 46 31 # Error constants47 ## Error constants 32 48 ERR_OK=0 33 49 ERR_OPEN=1 … … 49 65 #------------------------------------------------------------------------------ 50 66 51 # The version of FSUIPC67 ## The version of FSUIPC 52 68 fsuipc_version=0x0401 53 69 lib_version=0x0302 … … 100 116 class Values(object): 101 117 """The values that can be read from 'FSUIPC'.""" 102 # Fuel data index: centre tank118 ## Fuel data index: centre tank 103 119 FUEL_CENTRE = 0 104 120 105 # Fuel data index: left main tank121 ## Fuel data index: left main tank 106 122 FUEL_LEFT = 1 107 123 108 # Fuel data index: right main tank124 ## Fuel data index: right main tank 109 125 FUEL_RIGHT = 2 110 126 111 # Fuel data index: left aux tank127 ## Fuel data index: left aux tank 112 128 FUEL_LEFT_AUX = 3 113 129 114 # Fuel data index: right aux tank130 ## Fuel data index: right aux tank 115 131 FUEL_RIGHT_AUX = 4 116 132 117 # Fuel data index: left tip tank133 ## Fuel data index: left tip tank 118 134 FUEL_LEFT_TIP = 5 119 135 120 # Fuel data index: right tip tank136 ## Fuel data index: right tip tank 121 137 FUEL_RIGHT_TIP = 6 122 138 123 # Fuel data index: external 1 tank139 ## Fuel data index: external 1 tank 124 140 FUEL_EXTERNAL_1 = 7 125 141 126 # Fuel data index: external 2 tank142 ## Fuel data index: external 2 tank 127 143 FUEL_EXTERNAL_2 = 8 128 144 129 # Fuel data index: centre 2 tank145 ## Fuel data index: centre 2 tank 130 146 FUEL_CENTRE_2 = 9 131 147 132 # The number of fuel tank entries148 ## The number of fuel tank entries 133 149 NUM_FUEL = FUEL_CENTRE_2 + 1 134 150 135 # Engine index: engine #1151 ## Engine index: engine #1 136 152 ENGINE_1 = 0 137 153 138 # Engine index: engine #2154 ## Engine index: engine #2 139 155 ENGINE_2 = 1 140 156 141 # Engine index: engine #3157 ## Engine index: engine #3 142 158 ENGINE_3 = 2 143 159 144 # The number of hotkey entries160 ## The number of hotkey entries 145 161 HOTKEY_SIZE = 56 146 162
Note:
See TracChangeset
for help on using the changeset viewer.