Changeset 298:24c67ec5cdca for src/mlx/const.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/const.py
r274 r298 1 # Various constants used in the logger 2 3 #------------------------------------------------------------------------------- 4 5 # The version of the program 1 2 import sys 3 4 #------------------------------------------------------------------------------- 5 6 ## @package mlx.const 7 # 8 # The constants used by the program. 9 10 #------------------------------------------------------------------------------- 11 12 ## The version of the program 6 13 VERSION="0.6" 7 14 8 15 #------------------------------------------------------------------------------- 9 16 10 # The ratio between lbs and kg17 ## The ratio between lbs and kg 11 18 LBSTOKG=0.4536 12 19 13 # The ratio between kgs and lbs20 ## The ratio between kgs and lbs 14 21 KGSTOLB=1/LBSTOKG 15 22 16 # The ratio between feet and metre23 ## The ratio between feet and metre 17 24 FEETTOMETRES=0.3048 18 25 19 26 #------------------------------------------------------------------------------- 20 27 21 # The ratio between knots and km/h28 ## The ratio between knots and km/h 22 29 KNOTSTOKMPH=1.852 23 30 24 # The ratio between km/h and knots31 ## The ratio between km/h and knots 25 32 KMPHTOKNOTS=1/1.852 26 33 27 34 #------------------------------------------------------------------------------- 28 35 29 # Flight simulator type: MS Flight Simulator 200436 ## Flight simulator type: MS Flight Simulator 2004 30 37 SIM_MSFS9 = 1 31 38 32 # Flight simulator type: MS Flight Simulator X39 ## Flight simulator type: MS Flight Simulator X 33 40 SIM_MSFSX = 2 34 41 35 # Flight simulator type: X-Plane 942 ## Flight simulator type: X-Plane 9 36 43 SIM_XPLANE9 = 3 37 44 38 # Flight simulator type: X-Plane 1045 ## Flight simulator type: X-Plane 10 39 46 SIM_XPLANE10 = 4 40 47 41 48 #------------------------------------------------------------------------------- 42 49 43 # Aircraft type: Boeing 737-60050 ## Aircraft type: Boeing 737-600 44 51 AIRCRAFT_B736 = 1 45 52 46 # Aircraft type: Boeing 737-70053 ## Aircraft type: Boeing 737-700 47 54 AIRCRAFT_B737 = 2 48 55 49 # Aircraft type: Boeing 737-80056 ## Aircraft type: Boeing 737-800 50 57 AIRCRAFT_B738 = 3 51 58 52 # Aircraft type: Boeing 737-800 (charter configuration)59 ## Aircraft type: Boeing 737-800 (charter configuration) 53 60 AIRCRAFT_B738C = 16 54 61 55 # Aircraft type: Boeing 737-30062 ## Aircraft type: Boeing 737-300 56 63 AIRCRAFT_B733 = 4 57 64 58 # Aircraft type: Boeing 737-40065 ## Aircraft type: Boeing 737-400 59 66 AIRCRAFT_B734 = 5 60 67 61 # Aircraft type: Boeing 737-50068 ## Aircraft type: Boeing 737-500 62 69 AIRCRAFT_B735 = 6 63 70 64 # Aircraft type: Dash-8 Q40071 ## Aircraft type: Dash-8 Q400 65 72 AIRCRAFT_DH8D = 7 66 73 67 # Aircraft type: Boeing 767-20074 ## Aircraft type: Boeing 767-200 68 75 AIRCRAFT_B762 = 8 69 76 70 # Aircraft type: Boeing 767-30077 ## Aircraft type: Boeing 767-300 71 78 AIRCRAFT_B763 = 9 72 79 73 # Aircraft type: Canadair CRJ-20080 ## Aircraft type: Canadair CRJ-200 74 81 AIRCRAFT_CRJ2 = 10 75 82 76 # Aircraft type: Fokker F-7083 ## Aircraft type: Fokker F-70 77 84 AIRCRAFT_F70 = 11 78 85 79 # Aircraft type: Lisunov Li-286 ## Aircraft type: Lisunov Li-2 80 87 AIRCRAFT_DC3 = 12 81 88 82 # Aircraft type: Tupolev Tu-13489 ## Aircraft type: Tupolev Tu-134 83 90 AIRCRAFT_T134 = 13 84 91 85 # Aircraft type: Tupolev Tu-15492 ## Aircraft type: Tupolev Tu-154 86 93 AIRCRAFT_T154 = 14 87 94 88 # Aircraft type: Yakovlev Yak-4095 ## Aircraft type: Yakovlev Yak-40 89 96 AIRCRAFT_YK40 = 15 90 97 91 98 #------------------------------------------------------------------------------- 92 99 93 # The list of aircraft types that we know of100 ## The list of aircraft types that we know of 94 101 # The order is mostly from most recent to oldest considering 95 102 # Malev's history … … 105 112 #------------------------------------------------------------------------------- 106 113 107 # A mapping of aircraft types to their 'internal' ICAO codes (which are114 ## A mapping of aircraft types to their 'internal' ICAO codes (which are 108 115 # the same as the real ICAO codes, except in a few cases) 109 116 icaoCodes = { AIRCRAFT_B736 : "B736", … … 126 133 #------------------------------------------------------------------------------- 127 134 128 # Flight stage: boarding135 ## Flight stage: boarding 129 136 STAGE_BOARDING = 1 130 137 131 # Flight stage: pushback, startup and taxi138 ## Flight stage: pushback, startup and taxi 132 139 STAGE_PUSHANDTAXI = 2 133 140 134 # Flight stage: takeoff141 ## Flight stage: takeoff 135 142 STAGE_TAKEOFF = 3 136 143 137 # Flight stage: RTO144 ## Flight stage: RTO 138 145 STAGE_RTO = 4 139 146 140 # Flight stage: climb147 ## Flight stage: climb 141 148 STAGE_CLIMB = 5 142 149 143 # Flight stage: cruise150 ## Flight stage: cruise 144 151 STAGE_CRUISE = 6 145 152 146 # Flight stage: descent153 ## Flight stage: descent 147 154 STAGE_DESCENT = 7 148 155 149 # Flight stage: landing156 ## Flight stage: landing 150 157 STAGE_LANDING = 8 151 158 152 # Flight stage: taxi after landing159 ## Flight stage: taxi after landing 153 160 STAGE_TAXIAFTERLAND = 9 154 161 155 # Flight stage: parking162 ## Flight stage: parking 156 163 STAGE_PARKING = 10 157 164 158 # Flight stage: go-around165 ## Flight stage: go-around 159 166 STAGE_GOAROUND = 11 160 167 161 # Flight stage: end168 ## Flight stage: end 162 169 STAGE_END = 12 163 170 … … 183 190 #------------------------------------------------------------------------------- 184 191 185 # Plane status: unknown192 ## Plane status: unknown 186 193 PLANE_UNKNOWN = 0 187 194 188 # Plane status: at home, i.e. LHBP195 ## Plane status: at home, i.e. LHBP 189 196 PLANE_HOME = 1 190 197 191 # Plane status: away198 ## Plane status: away 192 199 PLANE_AWAY = 2 193 200 194 # Plane status: parking201 ## Plane status: parking 195 202 PLANE_PARKING = 3 196 203 197 204 #------------------------------------------------------------------------------- 198 205 199 # Flight type: scheduled206 ## Flight type: scheduled 200 207 FLIGHTTYPE_SCHEDULED = 0 201 208 202 # Flight type: old-timer209 ## Flight type: old-timer 203 210 FLIGHTTYPE_OLDTIMER = 1 204 211 205 # Flight type: VIP212 ## Flight type: VIP 206 213 FLIGHTTYPE_VIP = 2 207 214 208 # Flight type: charter215 ## Flight type: charter 209 216 FLIGHTTYPE_CHARTER = 3 210 217 … … 230 237 #------------------------------------------------------------------------------- 231 238 232 # Delay code: loading problems239 ## Delay code: loading problems 233 240 DELAYCODE_LOADING = 0 234 241 235 # Delay code: VATSIM problem242 ## Delay code: VATSIM problem 236 243 DELAYCODE_VATSIM = 1 237 244 238 # Delay code: network problems245 ## Delay code: network problems 239 246 DELAYCODE_NETWORK = 2 240 247 241 # Delay code: controller's fault248 ## Delay code: controller's fault 242 249 DELAYCODE_CONTROLLER = 3 243 250 244 # Delay code: system crash or freeze251 ## Delay code: system crash or freeze 245 252 DELAYCODE_SYSTEM = 4 246 253 247 # Delay code: navigation problem254 ## Delay code: navigation problem 248 255 DELAYCODE_NAVIGATION = 5 249 256 250 # Delay code: traffic problems257 ## Delay code: traffic problems 251 258 DELAYCODE_TRAFFIC = 6 252 259 253 # Delay code: apron navigation260 ## Delay code: apron navigation 254 261 DELAYCODE_APRON = 7 255 262 256 # Delay code: weather problems263 ## Delay code: weather problems 257 264 DELAYCODE_WEATHER = 8 258 265 259 # Delay code: personal reasons266 ## Delay code: personal reasons 260 267 DELAYCODE_PERSONAL = 9 261 268 262 269 #------------------------------------------------------------------------------- 263 270 264 # Message type: logger error271 ## Message type: logger error 265 272 # FIXME: cannot set the hotkey 266 273 MESSAGETYPE_LOGGER_ERROR = 1 267 274 268 # Message type: information275 ## Message type: information 269 276 MESSAGETYPE_INFORMATION = 2 270 277 271 # Message type: fault messages278 ## Message type: fault messages 272 279 MESSAGETYPE_FAULT = 3 273 280 274 # Message type: NO-GO fault messages281 ## Message type: NO-GO fault messages 275 282 MESSAGETYPE_NOGO = 4 276 283 277 # Message type: gate system messages284 ## Message type: gate system messages 278 285 MESSAGETYPE_GATE_SYSTEM = 5 279 286 280 # Message type: environment messages287 ## Message type: environment messages 281 288 # FIXME: flight plan closed (5 sec) 282 289 MESSAGETYPE_ENVIRONMENT = 6 283 290 284 # Message type: help messages291 ## Message type: help messages 285 292 MESSAGETYPE_HELP = 7 286 293 287 # Message type: visibility messages294 ## Message type: visibility messages 288 295 MESSAGETYPE_VISIBILITY = 8 289 296 … … 317 324 #------------------------------------------------------------------------------- 318 325 319 # Message display level: none326 ## Message display level: none 320 327 MESSAGELEVEL_NONE = 0 321 328 322 # Message display level: only message in the simulator329 ## Message display level: only message in the simulator 323 330 MESSAGELEVEL_FS = 1 324 331 325 # Message display level: only sound332 ## Message display level: only sound 326 333 MESSAGELEVEL_SOUND = 2 327 334 328 # Message display level: both335 ## Message display level: both 329 336 MESSAGELEVEL_BOTH = 3 330 337 … … 357 364 #------------------------------------------------------------------------------- 358 365 359 # Sound: ding366 ## Sound: ding 360 367 SOUND_DING = "ding.wav" 361 368 362 # Sound: notify369 ## Sound: notify 363 370 SOUND_NOTIFY = "notify.wav" 364 371 365 # Sound: NOTAM372 ## Sound: NOTAM 366 373 SOUND_NOTAM = "notam.mp3" 367 374 368 # Sound: scream375 ## Sound: scream 369 376 SOUND_SCREAM = "sikoly.mp3" 370 377 371 # Sound: boarding378 ## Sound: boarding 372 379 SOUND_BOARDING = "board.mp3" 373 380 374 # Sound: Malev theme381 ## Sound: Malev theme 375 382 SOUND_MALEV = "malev.mp3" 376 383 377 # Sound: taxi: Boeing 737 NG384 ## Sound: taxi: Boeing 737 NG 378 385 SOUND_TAXI_BOEING737NG = "737taxi.mp3" 379 386 380 # Sound: taxi: Boeing 767387 ## Sound: taxi: Boeing 767 381 388 SOUND_TAXI_BOEING767 = "767taxi.mp3" 382 389 383 # Sound: taxi: Fokker F70390 ## Sound: taxi: Fokker F70 384 391 SOUND_TAXI_F70 = "F70taxi.mp3" 385 392 386 # Sound: takeoff preparation request from the captain393 ## Sound: takeoff preparation request from the captain 387 394 SOUND_CAPTAIN_TAKEOFF = "cpt_takeoff.mp3" 388 395 389 # Sound: cruise396 ## Sound: cruise 390 397 SOUND_CRUISE = "TOC.mp3" 391 398 392 # Sound: descent399 ## Sound: descent 393 400 SOUND_DESCENT = "TOD.mp3" 394 401 395 # Sound: applause402 ## Sound: applause 396 403 SOUND_APPLAUSE = "taps.mp3" 397 404 398 # Sound: speedbrake405 ## Sound: speedbrake 399 406 SOUND_SPEEDBRAKE = "speed.mp3" 400 407 401 # Sound: taxi after landing408 ## Sound: taxi after landing 402 409 SOUND_TAXIAFTERLAND = "TaxiAfterLand.mp3" 403 410 … … 405 412 #------------------------------------------------------------------------------- 406 413 407 # Fuel tank: centre414 ## Fuel tank: centre 408 415 FUELTANK_CENTRE = 1 409 416 410 # Fuel tank: left417 ## Fuel tank: left 411 418 FUELTANK_LEFT = 2 412 419 413 # Fuel tank: right420 ## Fuel tank: right 414 421 FUELTANK_RIGHT = 3 415 422 416 # Fuel tank: left aux423 ## Fuel tank: left aux 417 424 FUELTANK_LEFT_AUX = 4 418 425 419 # Fuel tank: right aux426 ## Fuel tank: right aux 420 427 FUELTANK_RIGHT_AUX = 5 421 428 422 # Fuel tank: left tip429 ## Fuel tank: left tip 423 430 FUELTANK_LEFT_TIP = 6 424 431 425 # Fuel tank: right tip432 ## Fuel tank: right tip 426 433 FUELTANK_RIGHT_TIP = 7 427 434 428 # Fuel tank: external 1435 ## Fuel tank: external 1 429 436 FUELTANK_EXTERNAL1 = 8 430 437 431 # Fuel tank: external 2438 ## Fuel tank: external 2 432 439 FUELTANK_EXTERNAL2 = 9 433 440 434 # Fuel tank: centre2441 ## Fuel tank: centre2 435 442 FUELTANK_CENTRE2 = 10 436 443 … … 486 493 #------------------------------------------------------------------------------- 487 494 488 # The available gates at LHBP495 ## The available gates at LHBP 489 496 lhbpGateNumbers = [] 490 497
Note:
See TracChangeset
for help on using the changeset viewer.