comparison src/hwos.inc @ 507:4e6f5c36f4cc

NEW: Two ppO2 max settings. One for travel/bottom and one for deco gases
author heinrichsweikamp
date Tue, 27 Jun 2017 13:50:42 +0200
parents b9f06f1a1f74
children da2cd6172f29
comparison
equal deleted inserted replaced
506:b9f06f1a1f74 507:4e6f5c36f4cc
117 #DEFINE divemode_timeout_default .5 ; [min] 117 #DEFINE divemode_timeout_default .5 ; [min]
118 #DEFINE divemode_menu_timeout .30 ; [s] 118 #DEFINE divemode_menu_timeout .30 ; [s]
119 #DEFINE ppo2_warning_low .19 ; [cbar] (Default value) 119 #DEFINE ppo2_warning_low .19 ; [cbar] (Default value)
120 #DEFINE ppo2_lowest_setting .16 ; [cbar] (Minimum value) 120 #DEFINE ppo2_lowest_setting .16 ; [cbar] (Minimum value)
121 #DEFINE ppo2_display_high .120 ; [cbar] 121 #DEFINE ppo2_display_high .120 ; [cbar]
122 #DEFINE ppo2_warning_high .160 ; [cbar] (Default value) 122 #DEFINE ppo2_warning_high .160 ; [cbar] (Default value) for bottom/travel gases
123 #DEFINE ppo2_highest_setting .160 ; [cbar] (Max. Value) 123 #DEFINE ppo2_warning_high_deco .160 ; [cbar] (Default value) for deco gases
124 #DEFINE ppo2_highest_setting .160 ; [cbar] (Max. Value) for bottom/travel gases
125 #DEFINE ppo2_highest_setting_deco .160 ; [cbar] (Max. Value) for deco gases
124 #DEFINE cns_display_high .70 ; [%] 126 #DEFINE cns_display_high .70 ; [%]
125 #DEFINE cns_warning_high .100 ; [%] 127 #DEFINE cns_warning_high .100 ; [%]
126 #DEFINE gf_display_high .75 ; [%] 128 #DEFINE gf_display_high .75 ; [%]
127 #DEFINE gf_warning_high .100 ; [%] 129 #DEFINE gf_warning_high .100 ; [%]
128 #DEFINE depth_warn_mbar .13000 ; [mbar] 130 #DEFINE depth_warn_mbar .13000 ; [mbar]
574 lastdive_duration res 3 ; mins:2 and secs 576 lastdive_duration res 3 ; mins:2 and secs
575 lastdive_maxdepth res 2 ; in mbar 577 lastdive_maxdepth res 2 ; in mbar
576 battery_acumulated_charge res 2 ; Raw values in battery gauge IC 578 battery_acumulated_charge res 2 ; Raw values in battery gauge IC
577 gauge_status_byte res 1 ; Gauge IC status byte 579 gauge_status_byte res 1 ; Gauge IC status byte
578 button_polarity res 1 ; 0xFF (Both normal), 0x00 (Both inverted), 0x01 (Left inverted only), 0x02 (Right inverted only) 580 button_polarity res 1 ; 0xFF (Both normal), 0x00 (Both inverted), 0x01 (Left inverted only), 0x02 (Right inverted only)
581 gaslist_gas_global res 1 ; for color coding the gas lists
582 active_gas_type res 1 ; 0=Disabled, 1=First, 2=Travel, 3=Deco for OC gases and 0=Disabled, 1=First, 2=Normal for diluents
579 583
580 ;----------------------------------------------------------------------------- 584 ;-----------------------------------------------------------------------------
581 ; Reserve BANK2 for general purpose buffer (strings, images, etc). 585 ; Reserve BANK2 for general purpose buffer (strings, images, etc).
582 ; NOTE: Needs to be aligned with a bank (LOW(buffer)==0). 586 ; NOTE: Needs to be aligned with a bank (LOW(buffer)==0).
583 buffer udata_ovr 0x200 587 buffer udata_ovr 0x200
590 opt_gas_O2_ratio res 5 ; Needed because deco gaslist use N2 594 opt_gas_O2_ratio res 5 ; Needed because deco gaslist use N2
591 opt_dil_O2_ratio res 5 ; Must be in line with opt_gas_O2_ratio 595 opt_dil_O2_ratio res 5 ; Must be in line with opt_gas_O2_ratio
592 opt_gas_He_ratio res 5 ; He ratio Gas1-5 596 opt_gas_He_ratio res 5 ; He ratio Gas1-5
593 opt_dil_He_ratio res 5 ; Must be in line with opt_gas_He_ratio 597 opt_dil_He_ratio res 5 ; Must be in line with opt_gas_He_ratio
594 opt_gas_type res 5 ; 0=Disabled, 1=First, 2=Travel, 3=Deco 598 opt_gas_type res 5 ; 0=Disabled, 1=First, 2=Travel, 3=Deco
595 opt_dil_type res 5 ; 0=Disabled, 1=First, 2=Normal 599 opt_dil_type res 5 ; 0=Disabled, 1=First, 2=Normal -> ; Must be in line with opt_gas_type
596 opt_dive_mode res 1 ; 0=OC, 1=CC, 2=Gauge, 3=Apnea, 4=PSCR 600 opt_dive_mode res 1 ; 0=OC, 1=CC, 2=Gauge, 3=Apnea, 4=PSCR
597 opt_ppO2_max res 1 ; PPO2 Max for MOD calculation and color coding in divemode 601 opt_ppO2_max res 1 ; PPO2 Max for MOD calculation and color coding in divemode
598 opt_ccr_mode res 1 ; =0: Fixed SP, =1: Sensor 602 opt_ccr_mode res 1 ; =0: Fixed SP, =1: Sensor
599 opt_ppO2_min res 1 ; PPO2 min for Sensors and color coding in divemode 603 opt_ppO2_min res 1 ; PPO2 min for Sensors and color coding in divemode
600 opt_OC_bail_gas_change res 5 ; Gas change depths OC/Bailout 604 opt_OC_bail_gas_change res 5 ; Gas change depths OC/Bailout
636 opt_safety_stop_end res 1 ; [cbar] 640 opt_safety_stop_end res 1 ; [cbar]
637 opt_safety_stop_reset res 1 ; [cbar] 641 opt_safety_stop_reset res 1 ; [cbar]
638 opt_diveTimeout res 1 ; Timeout for Divemode [min] 642 opt_diveTimeout res 1 ; Timeout for Divemode [min]
639 opt_PSCR_drop res 1 ; PSCR Drop [%] 643 opt_PSCR_drop res 1 ; PSCR Drop [%]
640 opt_PSCR_lungratio res 1 ; PSCR Lung Ratio [1/x] 644 opt_PSCR_lungratio res 1 ; PSCR Lung Ratio [1/x]
645 opt_ppO2_max_deco res 1 ; PPO2 Max Decogases (for MOD calculation and color coding in divemode)
641 646
642 ;-----------------------------EEPROM DATA ------------------------------------ 647 ;-----------------------------EEPROM DATA ------------------------------------
643 ; Automatic reset of all options when this is changed: 648 ; Automatic reset of all options when this is changed:
644 #define eeprom_opt_serial 0x0005 ; Version 0.5 649 #define eeprom_opt_serial 0x0005 ; Version 0.5
645 650