comparison src/ostc3.inc @ 104:223579e905c3

Show a Safety Stop if enabled (Menu "Deco Parameters")
author heinrichsweikamp
date Tue, 03 Jun 2014 12:25:47 +0200
parents 8c471940d989
children c61b7a4e317c
comparison
equal deleted inserted replaced
103:047629595215 104:223579e905c3
131 131
132 ; Decomodel paramters 132 ; Decomodel paramters
133 #DEFINE no_fly_time_ratio .60 ; [%] 133 #DEFINE no_fly_time_ratio .60 ; [%]
134 #DEFINE deco_distance .10 ; [dm] 134 #DEFINE deco_distance .10 ; [dm]
135 135
136 ; Safety stop parameters
137 #DEFINE safety_stop_length .180 ; [s]
138 #DEFINE safety_stop_start .510 ; [mbar]
139 #DEFINE safety_stop_end .290 ; [mbar]
140 #DEFINE safety_stop_reset .1010 ; [mbar]
136 141
137 ; Color-code parameters for the divemode 142 ; Color-code parameters for the divemode
138 #DEFINE color_code_cns_high .100 ; [%] 143 #DEFINE color_code_cns_high .100 ; [%]
139 #DEFINE color_code_gf_warn_high .101 ; [%] 144 #DEFINE color_code_gf_warn_high .101 ; [%]
140 #DEFINE color_code_velocity_warn_high .10;[m/min] 145 #DEFINE color_code_velocity_warn_high .10;[m/min]
465 sensor_setpoint res 1 ; sensor ppo2 in 0.01bar for deco routine 470 sensor_setpoint res 1 ; sensor ppo2 in 0.01bar for deco routine
466 471
467 better_gas_number res 1 ; number (1-5) of the "better gas" in divemode, =0: no better gas available 472 better_gas_number res 1 ; number (1-5) of the "better gas" in divemode, =0: no better gas available
468 customview_divemode res 1 ; keeps last custom view 473 customview_divemode res 1 ; keeps last custom view
469 customview_surfmode res 1 474 customview_surfmode res 1
475 safety_stop_countdown res 1 ; counts seconds of safety stop
476
470 477
471 ;---------------------------- TMP DATA --------------------------------------- 478 ;---------------------------- TMP DATA ---------------------------------------
472 ; Space for various overlayed data from color, word, menu processors, etc. 479 ; Space for various overlayed data from color, word, menu processors, etc.
473 ; 480 ;
474 481
514 opt_enable_aGF res 1 ; =1: aGF can be selected underwater 521 opt_enable_aGF res 1 ; =1: aGF can be selected underwater
515 opt_compass_gain res 1 ; 0-7 (230LSB/Gauss to 1370LSB/Gaus) 522 opt_compass_gain res 1 ; 0-7 (230LSB/Gauss to 1370LSB/Gaus)
516 opt_sampling_rate res 1 ; =1: 10s, =0: 2s 523 opt_sampling_rate res 1 ; =1: 10s, =0: 2s
517 opt_dive_color_scheme res 1 ; 0-3 524 opt_dive_color_scheme res 1 ; 0-3
518 opt_pressure_adjust res 1 ; SIGNED int (two's complement), -20/+20mbar max. 525 opt_pressure_adjust res 1 ; SIGNED int (two's complement), -20/+20mbar max.
526 opt_enable_safetystop res 1 ; =1: A safety stop is shown
519 527
520 ;-----------------------------EEPROM DATA ------------------------------------ 528 ;-----------------------------EEPROM DATA ------------------------------------
521 ; Automatic reset of all options when this is changed: 529 ; Automatic reset of all options when this is changed:
522 #define eeprom_opt_serial 0x0005 ; Version 0.5 530 #define eeprom_opt_serial 0x0005 ; Version 0.5
523 531
597 605
598 #DEFINE compass_fast_mode flag9,0 ; =1: The compass is in fast mode 606 #DEFINE compass_fast_mode flag9,0 ; =1: The compass is in fast mode
599 #DEFINE in_color_menu flag9,1 ; =1: In the color scheme menu 607 #DEFINE in_color_menu flag9,1 ; =1: In the color scheme menu
600 #DEFINE bailoutgas_event flag9,2 ; =1: bailout was selected or a gaschange during bailout 608 #DEFINE bailoutgas_event flag9,2 ; =1: bailout was selected or a gaschange during bailout
601 #DEFINE event2_occured flag9,3 ; =1: An event in the Eventbyte2 occured, store it! 609 #DEFINE event2_occured flag9,3 ; =1: An event in the Eventbyte2 occured, store it!
610 #DEFINE show_safety_stop flag9,4 ; =1: Show the safety stop
611 #DEFINE safety_stop_active flag9,5 ; =1 The safety stop is currently displayed
602 ;============================================================================= 612 ;=============================================================================
603 ; C-code Routines 613 ; C-code Routines
604 ; PART 2 614 ; PART 2
605 extern deco_calc_CNS_decrease_15min 615 extern deco_calc_CNS_decrease_15min
606 extern deco_calc_CNS_fraction 616 extern deco_calc_CNS_fraction