Mercurial > public > hwos_code
comparison src/hwos.inc @ 307:14719662fb95 new_screen_layout
Merged Screen layout work #4 into VSItextv2
author | Janos Kovacs <kovjanos@gmail.com> |
---|---|
date | Tue, 02 Jun 2015 23:38:21 +0100 |
parents | 9b1b0b32e7d5 |
children | 453a3d13570f |
comparison
equal
deleted
inserted
replaced
306:e9d058f20097 | 307:14719662fb95 |
---|---|
64 #DEFINE FT_TINY .0 | 64 #DEFINE FT_TINY .0 |
65 #DEFINE FT_SMALL .1 | 65 #DEFINE FT_SMALL .1 |
66 #DEFINE FT_MEDIUM .2 | 66 #DEFINE FT_MEDIUM .2 |
67 #DEFINE FT_LARGE .3 | 67 #DEFINE FT_LARGE .3 |
68 | 68 |
69 #DEFINE warn_depth .1 | 69 #DEFINE warn_depth .1 |
70 #DEFINE warn_cns .2 | 70 #DEFINE warn_cns .2 |
71 #DEFINE warn_gf .3 | 71 #DEFINE warn_gf .3 |
72 #DEFINE warn_ppo2 .4 | 72 #DEFINE warn_ppo2 .4 |
73 #DEFINE warn_velocity .5 | 73 #DEFINE warn_ceiling .5 |
74 #DEFINE warn_ceiling .6 | 74 #DEFINE warn_gas_in_gaslist .6 |
75 #DEFINE warn_gas_in_gaslist .7 | 75 #DEFINE warn_ppo2_hud .7 |
76 #DEFINE warn_ppo2_hud .8 | 76 #DEFINE warn_battery .8 |
77 #DEFINE warn_battery .9 | |
78 | 77 |
79 ; External O2 cell input parameters | 78 ; External O2 cell input parameters |
80 #DEFINE min_mv .80 ; = 8mV | 79 #DEFINE min_mv .80 ; = 8mV |
81 #DEFINE max_mv .2500 ; = 250mV | 80 #DEFINE max_mv .2500 ; = 250mV |
82 #DEFINE ignore_mv .3500 ; = 350mV (To suppress ghost readings for long, open cables) | 81 #DEFINE ignore_mv .3500 ; = 350mV (To suppress ghost readings for long, open cables) |
150 #DEFINE safety_stop_reset .1010 ; [mbar] | 149 #DEFINE safety_stop_reset .1010 ; [mbar] |
151 | 150 |
152 ; Color-code parameters for the divemode | 151 ; Color-code parameters for the divemode |
153 #DEFINE color_code_cns_high .100 ; [%] | 152 #DEFINE color_code_cns_high .100 ; [%] |
154 #DEFINE color_code_gf_warn_high .101 ; [%] | 153 #DEFINE color_code_gf_warn_high .101 ; [%] |
155 #DEFINE color_code_velocity_warn_high .10;[m/min] | 154 #DEFINE color_code_velocity_warn_high .10 ;[m/min] |
156 | 155 |
157 ; Velocity threshold | 156 ; Velocity threshold |
158 #DEFINE velocity_warning_level_1 .7 ; [m/min] | 157 #DEFINE velocity_display_threshold_1 .7 ; [m/min] |
158 #DEFINE velocity_display_threshold_2 .5 ; [m/min] | |
159 | 159 |
160 ; Battery thresholds | 160 ; Battery thresholds |
161 #DEFINE lithium_36v_empty .2400 ; [mV] Saft 3,6V LS14500 AA - threshold for battery percent display | 161 #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!) | 162 #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 | 163 #DEFINE aa_15v_high .1550 ; [mV] Energizer 1,5V E2 AA |
567 opt_x_s3 res 2 ; calibration factor (Not stored in EEPROM) | 567 opt_x_s3 res 2 ; calibration factor (Not stored in EEPROM) |
568 opt_sensor_fallback res 1 ; =1: Fallback to SP1 when sensor is lost | 568 opt_sensor_fallback res 1 ; =1: Fallback to SP1 when sensor is lost |
569 opt_flip_screen res 1 ; =1: Flip the screen | 569 opt_flip_screen res 1 ; =1: Flip the screen |
570 opt_cR_button_left res 1 ; Left button sensitivity (cR hardware) | 570 opt_cR_button_left res 1 ; Left button sensitivity (cR hardware) |
571 opt_cR_button_right res 1 ; Right button sensitivity (cR hardware) | 571 opt_cR_button_right res 1 ; Right button sensitivity (cR hardware) |
572 opt_depthblink res 1 ; =1:do a red blinking warning, =0:default behaviour | 572 opt_modwarning res 1 ; =1:do a red blinking warning, =0:default behaviour |
573 opt_vsitextv2 res 1 ; =1:use the depth dependent ascend rate limits | |
573 | 574 |
574 ;-----------------------------EEPROM DATA ------------------------------------ | 575 ;-----------------------------EEPROM DATA ------------------------------------ |
575 ; Automatic reset of all options when this is changed: | 576 ; Automatic reset of all options when this is changed: |
576 #define eeprom_opt_serial 0x0005 ; Version 0.5 | 577 #define eeprom_opt_serial 0x0005 ; Version 0.5 |
577 | 578 |
682 #DEFINE compass_bearing_vis flag12,3 ; bearing is visible? (either ahead or behind/-180°) | 683 #DEFINE compass_bearing_vis flag12,3 ; bearing is visible? (either ahead or behind/-180°) |
683 #DEFINE compass_bearing_ahd flag12,4 ; bearing is ahead or behind? | 684 #DEFINE compass_bearing_ahd flag12,4 ; bearing is ahead or behind? |
684 #DEFINE blinking_depth_warning flag12,5 ; set by the color_depth. =1: warning color | 685 #DEFINE blinking_depth_warning flag12,5 ; set by the color_depth. =1: warning color |
685 #DEFINE blinking_depth_prev flag12,6 ; set by the TFT_depth. =1: prev display had warning color | 686 #DEFINE blinking_depth_prev flag12,6 ; set by the TFT_depth. =1: prev display had warning color |
686 #DEFINE blinking_depth_toggle flag12,7 ; toggle to blink | 687 #DEFINE blinking_depth_toggle flag12,7 ; toggle to blink |
688 | |
689 flag13 res 1 | |
690 #DEFINE neg_flag_save flag13,0 ; neg_flag backup for velocity logic | |
687 | 691 |
688 ;============================================================================= | 692 ;============================================================================= |
689 ; C-code Routines | 693 ; C-code Routines |
690 ; PART 2 | 694 ; PART 2 |
691 extern deco_calc_CNS_decrease_15min | 695 extern deco_calc_CNS_decrease_15min |