Mercurial > public > hwos_code
annotate src/divemode.inc @ 618:7b3903536213
work on new battery menu
author | heinrichsweikamp |
---|---|
date | Mon, 04 Feb 2019 22:57:24 +0100 |
parents | d866684249bd |
children | c40025d8e750 |
rev | line source |
---|---|
0 | 1 ;============================================================================= |
2 ; | |
608 | 3 ; File divemode.inc REFACTORED VERSION V2.99f |
0 | 4 ; |
5 ; | |
6 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved. | |
7 ;============================================================================= | |
8 ; HISTORY | |
9 ; 2011-08-15 : [mH] moving from OSTC code | |
10 | |
582 | 11 extern set_dive_modes |
12 extern diveloop | |
13 extern apnoe_calc_maxdepth | |
14 extern calc_deko_divemode_sensor | |
560 | 15 |
0 | 16 |
17 ; Divemode layout: | |
604 | 18 ; row =0...239 |
19 ; column =0...159 (x2) | |
0 | 20 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
21 ; Divemode has multiple layouts but basicly splits the screen into 3 rows: |
604 | 22 ; - upper content row: depth, max depth, dive time, etc. |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
23 ; - custom content view with selectable views |
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
24 ; - bottom content: temp, gas, ndl, tts, etc. |
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
25 |
604 | 26 ; I. The upper content row (0-99) |
27 ; The top row can be divided 2 areas: | |
28 ; - header : has the titles (mask) | |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
29 ; - content: has the values |
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
30 ;******* Upper content / header row ******* |
582 | 31 #DEFINE dm_mask_depth_row .0 |
32 #DEFINE dm_mask_depth_column .12 | |
33 #DEFINE dm_mask_maxdepth_row .0 | |
34 #DEFINE dm_mask_maxdepth_column .73 | |
35 #DEFINE dm_mask_maxdepth_column_nvsi .63 | |
36 #DEFINE dm_mask_divetime_row .0 | |
618 | 37 #DEFINE dm_mask_divetime_column .115 |
0 | 38 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
39 ; The content row contains 3 columns: |
582 | 40 ; - depth and ascend rate warning |
41 ; - max depth and warning messages | |
42 ; - dive time, apnea dive times and warning icon | |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
43 ; DIVEMODE_OFFSET=position below the title row |
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
44 ;******* Upper content / content row / 1st col ******* |
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
45 ; GLOBAL |
604 | 46 #DEFINE dm_offset .14 ; 14 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
47 ; Depth |
604 | 48 #DEFINE dm_depth_row dm_offset ; TOP - 14 - start position of the depth numbers |
582 | 49 #DEFINE dm_depth_column .0 ; LEFT - 0 |
604 | 50 #DEFINE dm_depth_bot dm_depth_row+.61 ; 75 |
51 #DEFINE dm_depth_rgt dm_depth_column+.59 ; 59 | |
52 #DEFINE dm_depth_dm_row dm_depth_row+.25 ; 39 - if metric and d<100, decimeter shown as: ".5" | |
53 #DEFINE dm_depth_dm_column dm_depth_column+.40 ; 40 - bottom aligned so it has its own position (2nd content line only) | |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
54 ; Ascend rate |
604 | 55 #DEFINE dm_velocity_text_row dm_depth_row+.62 ; 76 |
56 #DEFINE dm_velocity_text_column dm_depth_column ; 0 | |
57 #DEFINE dm_velocity_text_bot dm_velocity_text_row+.23 ; 99 | |
58 #DEFINE dm_velocity_text_rgt dm_depth_rgt ; 61 | |
309
efb53af0d62a
VSIbar #1: layout position changes
janos_kovacs <kovjanos@gmail.com>
parents:
300
diff
changeset
|
59 ; Ascend/Descend bar |
604 | 60 #DEFINE dm_velobar_top dm_offset ; 14 |
61 #DEFINE dm_velobar_lft dm_depth_rgt+.1 ; 62 | |
62 #DEFINE dm_velobar_bot dm_offset+.70 ; 84 | |
63 #DEFINE dm_velobar_rgt .73 ; 73 | |
582 | 64 #DEFINE dm_velobar_width .12 |
0 | 65 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
66 ;******* Upper content / content row / 2nd col ******* |
604 | 67 #DEFINE dm_upcnt_2ndcol .74 ; 74 |
68 #DEFINE dm_upcnt_2ndcol_nvsi .64 ; 64 | |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
69 ; Max depth |
604 | 70 #DEFINE dm_max_depth_row dm_offset ; 14 |
71 #DEFINE dm_max_depth_column dm_upcnt_2ndcol ; 74 | |
72 #DEFINE dm_max_depth_column_nvsi dm_upcnt_2ndcol_nvsi ; 64 | |
73 #DEFINE dm_max_depth_bot dm_max_depth_row+.34 ; 48 | |
582 | 74 #DEFINE dm_max_depth_rgt dm_max_depth_column+.36 ; 100 |
604 | 75 #DEFINE dm_max_depth_dm_row dm_max_depth_row+.11 ; 25 |
76 #DEFINE dm_max_depth_dm_column dm_max_depth_column+.23 ; 87 | |
77 #DEFINE dm_max_depth_dm_column_nvsi dm_max_depth_column_nvsi+.23 ; 77 | |
78 #DEFINE dm_max_alt_column .0 ; 0 | |
582 | 79 #DEFINE dm_max_alt_row .170 ; 170 |
604 | 80 #DEFINE dm_max_dm_alt_column dm_max_alt_column+.60 ; 60 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
81 ; Warning area (combined) |
604 | 82 #DEFINE dm_warning_row dm_offset+.36 ; 50 |
83 #DEFINE dm_warning_column dm_upcnt_2ndcol ; 74 | |
84 #DEFINE dm_warning_bot dm_warning_row+.49 ; 99 | |
582 | 85 #DEFINE dm_warning_rgt dm_warning_column+.62 ; 136 |
86 #DEFINE dm_warning_length .9 ; total string length | |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
87 ; Warning row #1 |
604 | 88 #DEFINE dm_warning1_row dm_warning_row ; 50 |
89 #DEFINE dm_warning1_column dm_warning_column ; 64 | |
90 #DEFINE dm_warning1_bot dm_warning1_row+.23 ; 73 | |
582 | 91 #DEFINE dm_warning1_rgt dm_warning_rgt ; 136 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
92 ; Warning row #2 |
604 | 93 #DEFINE dm_warning2_row dm_warning_row+.24 ; 74 |
94 #DEFINE dm_warning2_column dm_warning_column ; 64 | |
95 #DEFINE dm_warning2_bot dm_warning2_row+.23 ; 97 | |
582 | 96 #DEFINE dm_warning2_rgt dm_warning_rgt ; 136 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
97 |
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
98 ;******* Upper content / content row / 3rd col ******* |
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
99 ; Dive time |
604 | 100 #DEFINE dm_divetime_row dm_offset ; 14 |
582 | 101 #DEFINE dm_divetime_column .115 ; 115 |
102 #DEFINE dm_divetime_minsonly_column .111 ; 111 | |
604 | 103 #DEFINE dm_divetime_bot dm_divetime_row+.34 ; 48 |
582 | 104 #DEFINE dm_divetime_rgt .159 ; 159 |
604 | 105 #DEFINE dm_divetime_secs_row dm_divetime_row+.11 ; 25 |
582 | 106 #DEFINE dm_divetime_secs_column dm_divetime_column+.24 ; 139 |
604 | 107 #DEFINE dm_divetime_alt_row dm_offset ; 14 |
108 #DEFINE dm_divetime_alt_column .68 ; 68 | |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
109 ; Warning icon |
604 | 110 #DEFINE dm_warning_icon_row dm_offset+.41 ; 55 |
582 | 111 #DEFINE dm_warning_icon_column .137 ; 137 |
604 | 112 #DEFINE dm_warning_icon_bot dm_warning_icon_row+.38 ; 93 |
582 | 113 #DEFINE dm_warning_icon_rgt dm_warning_icon_column+.21 ; 156 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
114 ; Apnea dive time |
604 | 115 #DEFINE dm_divetime_apnoe_row dm_offset ; 14 |
582 | 116 #DEFINE dm_divetime_apnoe_column .103 ; 103 |
604 | 117 #DEFINE dm_divetime_apnoe_secs_row dm_divetime_apnoe_row+.11 ; 25 |
582 | 118 #DEFINE dm_divetime_apnoe_secs_column dm_divetime_apnoe_column+.36 ; 139 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
119 ; Apnea total time |
604 | 120 #DEFINE dm_apnoe_total_divetime_row dm_divetime_apnoe_row+.50 ; 64 |
582 | 121 #DEFINE dm_apnoe_total_divetime_column dm_divetime_apnoe_column ; 103 |
604 | 122 #DEFINE dm_apnoe_total_divetime_secs_row dm_apnoe_total_divetime_row+.11 ; 75 |
582 | 123 #DEFINE dm_apnoe_total_divetime_secs_col dm_divetime_apnoe_column+.36 ; 139 |
604 | 124 #DEFINE dm_total_apnoe_text_row dm_apnoe_total_divetime_row-.11 ; 53 |
582 | 125 #DEFINE dm_total_apnoe_text_column .132 ; 132 |
413
12e85930d95c
NEW: New Customview shows ppO2(O2) and ppO2(Diluent) during CCR mode
heinrichsweikamp
parents:
405
diff
changeset
|
126 ; I. End of the upper content row. (0-99) |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
127 |
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
128 ; 1px space between the 1st and 2nd content rows |
582 | 129 #DEFINE dm_sep_1_2_row dm_offset+.86 ; 100 |
0 | 130 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
131 ; II. Custom/selectable content row |
604 | 132 ; The custom view display area is: 101,163,0,159 (t,b,l,r), or 0,101->159,163 |
133 | |
134 ;******* Custom View: Global ******* | |
582 | 135 #DEFINE dm_customview_row dm_offset+.87 ; 101 |
604 | 136 #DEFINE dm_customview_column .0 ; 0 |
582 | 137 #DEFINE dm_customview_bot dm_customview_row+.62 ; 163 |
138 #DEFINE dm_customview_rgt .159 ; 159 | |
0 | 139 |
604 | 140 ;******* Custom View: Avg depth, stopwatch and avg depth ******* |
582 | 141 #DEFINE dm_custom_avr_stop_title_row dm_customview_row+.1 ; 102 |
142 #DEFINE dm_custom_avr_stop_row dm_customview_row+.16 ; 117 | |
604 | 143 #DEFINE dm_custom_avr_stop_column1 .0 ; 0 |
144 #DEFINE dm_custom_avr_stop_column2 .54 ; 54 | |
582 | 145 #DEFINE dm_custom_avr_stop_column3 .118 ; 118 |
0 | 146 |
604 | 147 ;******* Custom View: Decompressions stops ******* |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
148 ; Title |
582 | 149 #DEFINE dm_custom_decoplan_title_row dm_customview_row ; 101 |
604 | 150 #DEFINE dm_custom_decoplan_title_column .65 ; 65 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
151 ; 1st col |
582 | 152 #DEFINE dm_cust_dstop_2nd_stop_row dm_customview_row+.14 ; 115 |
604 | 153 #DEFINE dm_cust_dstop_2nd_stop_column .0 ; 0 |
582 | 154 #DEFINE dm_cust_dstop_3rd_stop_row dm_customview_row+.37 ; 138 |
604 | 155 #DEFINE dm_cust_dstop_3rd_stop_column dm_cust_dstop_2nd_stop_column ; 0 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
156 ; 2nd col |
604 | 157 #DEFINE dm_cust_dstop_4th_stop_row dm_cust_dstop_2nd_stop_row ; 115 |
158 #DEFINE dm_cust_dstop_4th_stop_column .56 ; 56 | |
159 #DEFINE dm_cust_dstop_5th_stop_row dm_cust_dstop_3rd_stop_row ; 138 | |
160 #DEFINE dm_cust_dstop_5th_stop_column dm_cust_dstop_4th_stop_column ; 56 | |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
161 ; 3rd col |
604 | 162 #DEFINE dm_cust_dstop_6th_stop_row dm_cust_dstop_2nd_stop_row ; 115 |
582 | 163 #DEFINE dm_cust_dstop_6th_stop_column .111 ; 111 |
604 | 164 #DEFINE dm_cust_dstop_7th_stop_row dm_cust_dstop_3rd_stop_row ; 138 |
582 | 165 #DEFINE dm_cust_dstop_7th_stop_column dm_cust_dstop_6th_stop_column ; 111 |
0 | 166 |
604 | 167 ;******* Custom View: Time, Battery, Surface Pressure ******* |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
168 ; Clock |
582 | 169 #DEFINE dm_custom_clock_title_row dm_customview_row+.1 ; 102 |
170 #DEFINE dm_custom_clock_row dm_customview_row+.16 ; 117 | |
604 | 171 #DEFINE dm_custom_clock_column .0 ; 0 |
172 ; Battery | |
173 #DEFINE dm_custom_battery_title_row dm_customview_row+.1 ; 102 | |
174 #DEFINE dm_custom_battery_volt_row dm_customview_row+.16 ; 117 | |
175 #DEFINE dm_custom_battery_percent_row dm_custom_ead_row+.23 ; 140 | |
176 #DEFINE dm_custom_battery_column .62 ; 62 | |
177 ; Surface Pressure | |
178 #DEFINE dm_custom_surfpres_title_row dm_customview_row+.1 ; 102 | |
179 #DEFINE dm_custom_surfpres_row dm_customview_row+.16 ; 117 | |
180 #DEFINE dm_custom_surfpres_column .95 ; 95 | |
181 | |
182 ;****** Custom View: ppO2, EAD/ENDS and CNS ******* | |
183 ; ppO2 | |
184 #DEFINE dm_custom_ppo2_title_row dm_customview_row+.1 ; 102 | |
185 #DEFINE dm_custom_ppo2_row dm_customview_row+.18 ; 119 | |
186 #DEFINE dm_custom_ppo2_column .2 ; 2 | |
187 ; EAD/END | |
582 | 188 #DEFINE dm_custom_eadend_title_row dm_customview_row+.1 ; 102 |
189 #DEFINE dm_custom_ead_row dm_customview_row+.16 ; 117 | |
604 | 190 #DEFINE dm_custom_ead_column .50 ; 50 |
582 | 191 #DEFINE dm_custom_end_row dm_custom_ead_row+.23 ; 140 |
604 | 192 #DEFINE dm_custom_end_column dm_custom_ead_column ; 50 |
193 ; CNS | |
194 #DEFINE dm_custom_cns_title_row dm_customview_row+.1 ; 102 | |
195 #DEFINE dm_custom_cns_row dm_customview_row+.18 ; 119 | |
196 #DEFINE dm_custom_cns_column .115 ; 115 | |
197 | |
198 ;****** Custom View: tripple CNS ******* | |
199 #DEFINE dm_custom_cns3_title_row dm_customview_row+.1 ; 102 | |
200 #DEFINE dm_custom_cns3_row dm_customview_row+.16 ; 117 | |
201 #DEFINE dm_custom_cns3_column1 .8 ; 8 | |
202 #DEFINE dm_custom_cns3_column2 .62 ; 62 | |
203 #DEFINE dm_custom_cns3_column3 .115 ; 115 | |
204 | |
205 ;****** Custom View: Ceiling, Tissues, (current GF) | |
206 ; Ceiling | |
207 #DEFINE dm_custom_ceiling_title_row dm_customview_row+.1 ; 102 | |
208 #DEFINE dm_custom_ceiling_row dm_customview_row+.18 ; 119 | |
209 #DEFINE dm_custom_ceiling_column .62 ; 62 | |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
210 ; Tissue title |
582 | 211 #DEFINE dm_custom_tissue_title_row dm_customview_row+.1 ; 102 |
212 #DEFINE dm_custom_tissue_title_column .120 ; 120 | |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
213 ; N2 / He values |
582 | 214 #DEFINE dm_custom_tissue_N2_row dm_custom_ead_row+.5 ; 122 |
215 #DEFINE dm_custom_tissue_N2_column .105 ; 105 | |
216 #DEFINE dm_custom_tissue_He_row dm_custom_end_row+.5 ; 145 | |
217 #DEFINE dm_custom_tissue_He_column dm_custom_tissue_N2_column ; 105 | |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
218 ; Tissue diagram |
582 | 219 #DEFINE dm_custom_tissue_diagram_top dm_customview_row+.16 ; 117 |
220 #DEFINE dm_custom_tissue_diagram_bottom dm_custom_tissue_diagram_top+.43; 160 | |
221 #DEFINE dm_custom_tissue_diagram_left .116 ; 116 | |
604 | 222 #DEFINE dm_custom_tissue_diagram_frame_spacing .8 ; 8 |
0 | 223 |
604 | 224 ;******* Custom View: GF-lo/hi, aGF-lo/hi, current GF value ******* |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
225 ; Title |
582 | 226 #DEFINE dm_custom_gf_title_row dm_customview_row+.1 ; 102 |
227 #DEFINE dm_custom_gf_row dm_customview_row+.18 ; 119 | |
604 | 228 #DEFINE dm_custom_gf_column1 .0 ; 0 |
608 | 229 #DEFINE dm_custom_gf_column2 .65 ; 65 |
230 #DEFINE dm_custom_gf_column3 .95 ; 95 | |
123 | 231 |
604 | 232 ;******* Custom View: Compass ******* |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
233 ; Title |
582 | 234 #DEFINE dm_custom_compass_mask_row dm_customview_row ; 101 |
604 | 235 #DEFINE dm_custom_compass_mask_column .65 ; 65 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
236 ; Head and arrows |
582 | 237 #DEFINE dm_custom_compass_head_row dm_customview_row+.39 ; 140 |
604 | 238 #DEFINE dm_custom_compass_head_column .62 ; 62 |
239 #DEFINE dm_custom_compass_ldir_column .5 ; 5 | |
582 | 240 #DEFINE dm_custom_compass_rdir_column .140 ; 140 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
241 ; Ruler |
582 | 242 #DEFINE dm_custom_compass_graph_row dm_customview_row ; 101 |
604 | 243 #DEFINE dm_custom_compass_graph_height .33 ; 33 |
244 #DEFINE dm_custom_compass_tick_height .3 ; 3 | |
582 | 245 #DEFINE dm_custom_compass_tick_top_top dm_custom_compass_graph_row+.1 ; 102 |
246 #DEFINE dm_custom_compass_tick_top_bot dm_custom_compass_graph_row+.4 ; 105 | |
247 #DEFINE dm_custom_compass_label_row dm_custom_compass_graph_row+.6 ; 107 | |
604 | 248 #DEFINE dm_custom_compass_label_height .24 ; 24 |
582 | 249 #DEFINE dm_custom_compass_tick_bot_top dm_custom_compass_graph_row+.30 ; 131 |
250 #DEFINE dm_custom_compass_tick_bot_bot dm_custom_compass_graph_row+.33 ; 134 | |
53
2825f1d2262f
NEW: Dynamic Gaslist in OC mode (Divemode, Customview 7)
heinrichsweikamp
parents:
38
diff
changeset
|
251 |
604 | 252 ;******* Custom View: O2 Sensor Values ******* |
253 #DEFINE dm_custom_hud_title_row dm_customview_row+.1 ; 102 | |
254 #DEFINE dm_custom_hud_row dm_customview_row+.16 ; 117 | |
255 #DEFINE dm_custom_hud_sensor1_column .6 ; 6 | |
256 #DEFINE dm_custom_hud_sensor2_column .62 ; 62 | |
582 | 257 #DEFINE dm_custom_hud_sensor3_column .118 ; 118 |
0 | 258 |
604 | 259 ;******* Custom View: Gas Needs ******* |
260 #DEFINE dm_custom_gas_mask_row dm_customview_row ; 101 | |
261 #DEFINE dm_custom_gas_row1 dm_customview_row+.14 ; 115 | |
262 #DEFINE dm_custom_gas_row2 dm_customview_row+.37 ; 138 | |
263 #DEFINE dm_custom_gas_column_title .29 ; 29 | |
264 #DEFINE dm_custom_gas_column1 .5 ; 5 | |
265 #DEFINE dm_custom_gas_column2 .85 ; 85 | |
0 | 266 |
604 | 267 ; ******* Custom View: Tank Pressures ******* |
268 #DEFINE dm_custom_tankdata_mask_row dm_customview_row+.1 ; 102 | |
269 #DEFINE dm_custom_tankdata_row dm_customview_row+.16 ; 117 | |
270 #DEFINE dm_custom_tankdata_pres1_col .2 ; 2 | |
271 #DEFINE dm_custom_tankdata_pres2_col .115 ; 115 | |
272 #DEFINE dm_custom_tankdata_SAC_col .56 ; 56 | |
413
12e85930d95c
NEW: New Customview shows ppO2(O2) and ppO2(Diluent) during CCR mode
heinrichsweikamp
parents:
405
diff
changeset
|
273 |
604 | 274 ;******* Custom View: Sensor Check ******* |
275 #DEFINE dm_custom_s_check_title_row dm_customview_row+.1 ; 102 | |
276 #DEFINE dm_custom_s_check_row dm_customview_row+.18 ; 119 | |
277 #DEFINE dm_custom_s_check_title_column .50 ; 50 | |
278 #DEFINE dm_custom_ppO2_column .115 ; 115 | |
279 #DEFINE dm_custom_ppDil_column .2 ; 2 | |
582 | 280 |
604 | 281 ;******* Custom View: PSCR Info ******* |
282 #DEFINE dm_custom_pscr_title_row dm_customview_row+.1 ; 102 | |
283 #DEFINE dm_custom_pscr_row dm_customview_row+.18 ; 119 | |
284 #DEFINE dm_custom_pscr_drop_column .55 ; 55 | |
285 #DEFINE dm_custom_pscr_ratio_column .105 ; 105 | |
286 | |
287 ; II. End of the custom content row (101-163) | |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
288 |
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
289 ; 1px space between the 2nd and 3rd content rows |
582 | 290 #DEFINE dm_sep_2_3_row dm_offset+.150 ; 164 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
291 |
131 | 292 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
293 ; III. The 3rd content row contains temperature, active gas, NDL/TTS time, |
582 | 294 ; simulator menu, active/dil gas, decostop, Apnea surface time and max depth |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
295 ; The content row contains 2 columns: |
582 | 296 ; - temperature, gas names |
604 | 297 ; - NDL/TTS, DecoStop |
582 | 298 #DEFINE dm_3rdrow_top dm_offset+.151 ; 165 |
299 #DEFINE dm_3rdrow_bot .239 ; 239 | |
604 | 300 #DEFINE dm_3rdrow_lft .0 ; 0 |
582 | 301 #DEFINE dm_3rdrow_rgt .159 ; 159 |
0 | 302 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
303 ;******* Bottom content / 1st col ******* |
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
304 ; Temperature |
582 | 305 #DEFINE dm_temp_row dm_3rdrow_top-.4 ; 161 |
604 | 306 #DEFINE dm_temp_column .0 ; 0 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
307 ; Simulation text |
604 | 308 #DEFINE dm_simtext_row dm_3rdrow_top+.18 ; 183 |
309 #DEFINE dm_simtext_column .36 ; 35 | |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
310 ; Diluent gas |
582 | 311 #DEFINE dm_active_dil_row dm_3rdrow_top+.19 ; 185 |
604 | 312 #DEFINE dm_active_dil_column .0 ; 0 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
313 ; active gas for OC, blinking better gas, setpoint or bailout for CCR |
582 | 314 #DEFINE dm_active_gas_row .208 ; 208 |
604 | 315 #DEFINE dm_active_gas_column .0 ; 0 |
0 | 316 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
317 ;******* Bottom content / 2nd col ******* |
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
318 ; Next deco stop for TTS |
582 | 319 #DEFINE dm_decostop_1st_stop_row dm_3rdrow_top ; 165 |
604 | 320 #DEFINE dm_decostop_1st_stop_column .82 ; 82 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
321 ; Safety Stop |
582 | 322 #DEFINE dm_safetystop_row dm_3rdrow_top ; 165 |
323 #DEFINE dm_safetystop_column .118 ; 118 | |
324 #DEFINE dm_safetystop_bot dm_safetystop_row+.31 ; 196 | |
325 #DEFINE dm_safetystop_text_row dm_safetystop_row+.1 ; 166 | |
604 | 326 #DEFINE dm_safetystop_text_column .80 ; 80 for the 4 chars "Stop" |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
327 ; TTS |
604 | 328 #DEFINE dm_tts_value_row dm_3rdrow_top+.32; ; 197 |
582 | 329 #DEFINE dm_tts_value_column .118 ; 118 |
604 | 330 #DEFINE dm_tts_text_row dm_tts_value_row+.5 ; 202 |
331 #DEFINE dm_tts_text_column .85 ; 85 | |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
332 ; NDL - the same position as TTS |
582 | 333 #DEFINE dm_ndl_value_row dm_tts_value_row ; 197 |
334 #DEFINE dm_ndl_value_column dm_tts_value_column ; 118 | |
335 #DEFINE dm_ndl_text_row dm_tts_text_row ; 202 | |
604 | 336 #DEFINE dm_ndl_text_column dm_tts_text_column ; 85 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
337 ; FTTS (only modded screen) |
582 | 338 #DEFINE dm_ftts_value_row dm_3rdrow_top+.64 ; 215 |
604 | 339 #DEFINE dm_ftts_value_column .97 ; 97 |
315
4f83470dcece
VSIbar #3: remaining changes for the split style bar
Janos Kovacs <kovjanos@gmail.com>
parents:
310
diff
changeset
|
340 ; Grid line (only modded screen) |
582 | 341 #DEFINE dm_gassep_row dm_sep_2_3_row ; 164 |
604 | 342 #DEFINE dm_gassep_bot .239 ; 239 |
343 #DEFINE dm_gassep_column .78 ; 78 | |
0 | 344 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
345 ;******* Bottom content / Apnea mode *******; |
604 | 346 #DEFINE dm_apnoe_surface_time_text_row .192 ; 192 |
347 #DEFINE dm_apnoe_surface_time_text_col .30 ; 30 | |
348 #DEFINE dm_apnoe_surface_time_row .207 ; 207 | |
349 #DEFINE dm_apnoe_surface_time_column .15 ; 15 | |
350 #DEFINE dm_apnoe_last_max_depth_text_row .192 ; 192 | |
582 | 351 #DEFINE dm_apnoe_last_max_depth_text_col .100 ; 100 |
604 | 352 #DEFINE dm_apnoe_last_max_depth_row .207 ; 207 |
582 | 353 #DEFINE dm_apnoe_last_max_depth_column .100 ; 100 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
354 |
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
355 |
604 | 356 ; IV. The last set of parameters is for the menus displayed in dive mode |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
357 ; Divemode menu |
604 | 358 #DEFINE dm_menu_row .164 ; 164 upper row, the frame's top line is the separator |
359 #DEFINE dm_menu_lower .239 ; 239 lower border | |
360 #DEFINE dm_menu_left .0 ; 0 left | |
361 #DEFINE dm_menu_right .159 ; 159 right | |
83 | 362 |
582 | 363 #DEFINE dm_menu_item1_row dm_menu_row+.1 ; 165 |
604 | 364 #DEFINE dm_menu_item1_column .9 ; 9 |
582 | 365 #DEFINE dm_menu_item2_row dm_menu_item1_row+.24 ; 189 |
604 | 366 #DEFINE dm_menu_item2_column dm_menu_item1_column ; 9 |
582 | 367 #DEFINE dm_menu_item3_row dm_menu_item2_row+.24 ; 213 |
604 | 368 #DEFINE dm_menu_item3_column dm_menu_item1_column ; 9 |
83 | 369 |
582 | 370 #DEFINE dm_menu_item4_row dm_menu_row+.1 ; 165 |
604 | 371 #DEFINE dm_menu_item4_column .89 ; 89 |
582 | 372 #DEFINE dm_menu_item5_row dm_menu_item4_row+.24 ; 189 |
604 | 373 #DEFINE dm_menu_item5_column dm_menu_item4_column ; 89 |
582 | 374 #DEFINE dm_menu_item6_row dm_menu_item5_row+.24 ; 213 |
604 | 375 #DEFINE dm_menu_item6_column dm_menu_item4_column ; 89 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
376 |