comparison src/hwos.inc @ 399:db25f2028074

CHANGE: New segmented speed graph in divemode NEW: Safety Stop can be configured (Start-, End- and reset-depth + length of stop) via PC
author heinrichsweikamp
date Tue, 24 Nov 2015 16:22:52 +0100
parents 1f2e35f5a5aa
children a3a0f1fd7fc4
comparison
equal deleted inserted replaced
398:1f2e35f5a5aa 399:db25f2028074
140 140
141 ; Decomodel paramters 141 ; Decomodel paramters
142 #DEFINE no_fly_time_ratio .60 ; [%] 142 #DEFINE no_fly_time_ratio .60 ; [%]
143 #DEFINE deco_distance .10 ; [dm] 143 #DEFINE deco_distance .10 ; [dm]
144 144
145 ; Safety stop parameters
146 #DEFINE safety_stop_length .180 ; [s]
147 #DEFINE safety_stop_start .510 ; [mbar]
148 #DEFINE safety_stop_end .290 ; [mbar]
149 #DEFINE safety_stop_reset .1010 ; [mbar]
150
151 ; Color-code parameters for the divemode 145 ; Color-code parameters for the divemode
152 #DEFINE color_code_cns_high .100 ; [%] 146 #DEFINE color_code_cns_high .100 ; [%]
153 #DEFINE color_code_gf_warn_high .101 ; [%] 147 #DEFINE color_code_gf_warn_high .101 ; [%]
154 #DEFINE color_code_velocity_warn_high .10 ;[m/min] 148 #DEFINE color_code_velocity_warn_high .11 ;[m/min]
155 #DEFINE color_code_velocity_attn_high .8 ;[m/min] 149 #DEFINE color_code_velocity_attn_high .10 ;[m/min]
156 150
157 ; Velocity threshold 151 ; Velocity threshold
158 #DEFINE velocity_display_threshold_1 .5 ; [m/min] 152 #DEFINE velocity_display_threshold_1 .3 ; [m/min]
159 153
160 ; Battery thresholds 154 ; Battery thresholds
161 #DEFINE lithium_36v_empty .2400 ; [mV] Saft 3,6V LS14500 AA - threshold for battery percent display 155 #DEFINE lithium_36v_empty .2400 ; [mV] Saft 3,6V LS14500 AA - threshold for battery percent display
162 #DEFINE lithium_36v_low .2000 ; [mV] (Must be bigger then aa_15v_high!) 156 #DEFINE lithium_36v_low .2000 ; [mV] (Must be bigger then aa_15v_high!)
163 #DEFINE aa_15v_high .1550 ; [mV] Energizer 1,5V E2 AA 157 #DEFINE aa_15v_high .1550 ; [mV] Energizer 1,5V E2 AA
531 start_month res 1 ; At start of dive (For logbook) 525 start_month res 1 ; At start of dive (For logbook)
532 start_year res 1 ; At start of dive (For logbook) 526 start_year res 1 ; At start of dive (For logbook)
533 start_hours res 1 ; At start of dive (For logbook) 527 start_hours res 1 ; At start of dive (For logbook)
534 start_mins res 1 ; At start of dive (For logbook) 528 start_mins res 1 ; At start of dive (For logbook)
535 529
530 old_velocity res 4 ; Strores the last 4 speeds (8 seconds) in m/min
531
536 ;----------------------------------------------------------------------------- 532 ;-----------------------------------------------------------------------------
537 ; Reserve BANK2 for general purpose buffer (strings, images, etc). 533 ; Reserve BANK2 for general purpose buffer (strings, images, etc).
538 ; NOTE: Needs to be aligned with a bank (LOW(buffer)==0). 534 ; NOTE: Needs to be aligned with a bank (LOW(buffer)==0).
539 buffer udata_ovr 0x200 535 buffer udata_ovr 0x200
540 buffer res .256 536 buffer res .256
585 opt_modwarning res 1 ; =1:do a red blinking warning, =0:default behaviour 581 opt_modwarning res 1 ; =1:do a red blinking warning, =0:default behaviour
586 opt_vsitextv2 res 1 ; =1:use the depth dependent ascend rate limits 582 opt_vsitextv2 res 1 ; =1:use the depth dependent ascend rate limits
587 opt_vsigraph res 1 ; =1:draw the graphical VSI bar 583 opt_vsigraph res 1 ; =1:draw the graphical VSI bar
588 opt_showppo2 res 1 ; =1:always show the ppO2 value in the warning position 584 opt_showppo2 res 1 ; =1:always show the ppO2 value in the warning position
589 opt_temperature_adjust res 1 ; SIGNED int (two's complement), -2.0/+2.0 °C max. 585 opt_temperature_adjust res 1 ; SIGNED int (two's complement), -2.0/+2.0 °C max.
586 opt_safety_stop_length res 1 ; [s]
587 opt_safety_stop_start res 1 ; [cbar]
588 opt_safety_stop_end res 1 ; [cbar]
589 opt_safety_stop_reset res 1 ; [cbar]
590 590
591 ;-----------------------------EEPROM DATA ------------------------------------ 591 ;-----------------------------EEPROM DATA ------------------------------------
592 ; Automatic reset of all options when this is changed: 592 ; Automatic reset of all options when this is changed:
593 #define eeprom_opt_serial 0x0005 ; Version 0.5 593 #define eeprom_opt_serial 0x0005 ; Version 0.5
594 594
701 #DEFINE blinking_depth_warning flag12,5 ; set by the color_depth. =1: warning color 701 #DEFINE blinking_depth_warning flag12,5 ; set by the color_depth. =1: warning color
702 #DEFINE blinking_depth_prev flag12,6 ; set by the TFT_depth. =1: prev display had warning color 702 #DEFINE blinking_depth_prev flag12,6 ; set by the TFT_depth. =1: prev display had warning color
703 #DEFINE blinking_depth_toggle flag12,7 ; toggle to blink 703 #DEFINE blinking_depth_toggle flag12,7 ; toggle to blink
704 704
705 #DEFINE neg_flag_velocity flag13,0 ; neg_flag backup for velocity logic 705 #DEFINE neg_flag_velocity flag13,0 ; neg_flag backup for velocity logic
706 #DEFINE velocity_warn flag13,1 ; flag set when ascend is in warning rate 706 ;#DEFINE unused
707 #DEFINE velocity_attn flag13,2 ; flag set when ascend is in attention rate 707 ;#DEFINE unused
708 #DEFINE sp2_switched flag13,3 ; =1: This setpoint has been autoselected already 708 #DEFINE sp2_switched flag13,3 ; =1: This setpoint has been autoselected already
709 #DEFINE sp3_switched flag13,4 ; =1: This setpoint has been autoselected already 709 #DEFINE sp3_switched flag13,4 ; =1: This setpoint has been autoselected already
710 #DEFINE sp4_switched flag13,5 ; =1: This setpoint has been autoselected already 710 #DEFINE sp4_switched flag13,5 ; =1: This setpoint has been autoselected already
711 #DEFINE sp5_switched flag13,6 ; =1: This setpoint has been autoselected already 711 #DEFINE sp5_switched flag13,6 ; =1: This setpoint has been autoselected already
712 712