comparison src/ostc3.inc @ 97:53a99a2dc6a1

CHANGE: Always compute bailout plan based on all active gases CHANGE: Re-select last diluent when returning from bailout to OC
author heinrichsweikamp
date Mon, 28 Apr 2014 16:26:31 +0200
parents a4bff632e97b
children 24b3fd59e61f
comparison
equal deleted inserted replaced
96:a4bff632e97b 97:53a99a2dc6a1
18 #include <p18f87k22.inc> 18 #include <p18f87k22.inc>
19 #include <ports.inc> ; Portmap 19 #include <ports.inc> ; Portmap
20 20
21 #DEFINE softwareversion_x d'1' ; Software version XX.YY 21 #DEFINE softwareversion_x d'1' ; Software version XX.YY
22 #DEFINE softwareversion_y d'27' ; Software version XX.YY 22 #DEFINE softwareversion_y d'27' ; Software version XX.YY
23 #DEFINE softwareversion_beta 0 ; (and 0 for release) 23 #DEFINE softwareversion_beta 1 ; (and 0 for release)
24 24
25 #DEFINE comm_service_key 0xABCDEF 25 #DEFINE comm_service_key 0xABCDEF
26 26
27 ;----------------------------------------------------------------------------- 27 ;-----------------------------------------------------------------------------
28 28
383 batt_percent res 1 ; Battery in percent (1-100) 383 batt_percent res 1 ; Battery in percent (1-100)
384 ambient_light res 2 ; ambient_light level 384 ambient_light res 2 ; ambient_light level
385 lo_temp res 1 385 lo_temp res 1
386 hi_temp res 1 386 hi_temp res 1
387 desaturation_time res 2 387 desaturation_time res 2
388 convert_value_temp res 3 ; used in menu_battery_state_convert_date 388 convert_value_temp res 3 ; used in menu_battery_state_convert_date
389 active_gas res 1 389 active_gas res 1
390 active_diluent res 1 ; As a backup when switching back from Bailout to CCR
390 decoplan_page res 1 391 decoplan_page res 1
391 warning_counter res 1 ; Counts amount of warning in divemode 392 warning_counter res 1 ; Counts amount of warning in divemode
392 warning_counter_backup res 1 ; Backup of warning_counter 393 warning_counter_backup res 1 ; Backup of warning_counter
393 warning_page res 1 ; current # of warning page 394 warning_page res 1 ; current # of warning page
394 rssi_value res 1 ; Current RSSI level 395 rssi_value res 1 ; Current RSSI level
494 opt_dil_type res 5 ; 0=Disabled, 1=First, 2=Normal 495 opt_dil_type res 5 ; 0=Disabled, 1=First, 2=Normal
495 opt_dive_mode res 1 ; 0=OC, 1=CC, 2=Gauge, 3=Apnea 496 opt_dive_mode res 1 ; 0=OC, 1=CC, 2=Gauge, 3=Apnea
496 opt_ppO2_max res 1 ; PPO2 Max for MOD calculation and color coding in divemode 497 opt_ppO2_max res 1 ; PPO2 Max for MOD calculation and color coding in divemode
497 opt_ccr_mode res 1 ; =0: Fixed SP, =1: Sensor 498 opt_ccr_mode res 1 ; =0: Fixed SP, =1: Sensor
498 opt_ppO2_min res 1 ; PPO2 min for Sensors and color coding in divemode 499 opt_ppO2_min res 1 ; PPO2 min for Sensors and color coding in divemode
499 500 opt_OC_bail_gas_change res 5 ; Gas change depths OC/Bailout
500 ;---- Managing Settings 501 ;---- Managing Settings
501 502
502 opt_brightness res 1 ; =0: Eco, =1:Medium, =2:Full 503 opt_brightness res 1 ; =0: Eco, =1:Medium, =2:Full
503 opt_salinity res 1 ; 0-5% 504 opt_salinity res 1 ; 0-5%
504 #DEFINE opt_name_length .60 ; Custom text string 5 rows with 12 chars 505 #DEFINE opt_name_length .60 ; Custom text string 5 rows with 12 chars