Mercurial > public > hwos_code
annotate src/divemode.inc @ 646:5b7fe7777425
3.16 release
author | heinrichs weikamp |
---|---|
date | Thu, 14 Oct 2021 12:03:24 +0200 |
parents | 4050675965ea |
children | 75e90cd0c2c3 |
rev | line source |
---|---|
0 | 1 ;============================================================================= |
2 ; | |
634 | 3 ; File divemode.inc * combined next generation V3.09.4g |
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 | |
634 | 11 |
582 | 12 extern diveloop |
634 | 13 extern check_dive_modes_surf |
582 | 14 extern apnoe_calc_maxdepth |
628 | 15 extern check_gas_best |
16 extern setup_gas_registers | |
17 extern deco_setup_oc_gases | |
18 | |
19 IFDEF _ccr_pscr | |
20 extern setup_dil_registers | |
21 extern deco_setup_cc_diluents | |
22 ENDIF | |
623 | 23 |
24 IFDEF _external_sensor | |
582 | 25 extern calc_deko_divemode_sensor |
623 | 26 ENDIF |
560 | 27 |
0 | 28 |
29 ; Divemode layout: | |
623 | 30 ; row = 0...239 |
31 ; column = 0...159 (x2) | |
0 | 32 |
634 | 33 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
34 ; Divemode has multiple layouts but basicly splits the screen into 3 rows: |
604 | 35 ; - upper content row: depth, max depth, dive time, etc. |
623 | 36 ; - custom content row: selectable views |
37 ; - bottom content row: temp, gas, ndl, tts, etc. | |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
38 |
634 | 39 |
40 ;----------------------------------------------------------------------------- | |
604 | 41 ; I. The upper content row (0-99) |
634 | 42 ;----------------------------------------------------------------------------- |
43 | |
623 | 44 ; The top row is divided in 2 areas: |
45 ; - header : holds the titles (mask) | |
46 ; - content: holds the values | |
47 | |
634 | 48 |
49 ;----------------------------------------------------------------------------- | |
50 ; Upper Content / Header Row | |
623 | 51 |
582 | 52 #DEFINE dm_mask_depth_row .0 |
623 | 53 #DEFINE dm_mask_depth_column .2 |
54 #DEFINE dm_mask_depth_column_alt .64 | |
55 | |
582 | 56 #DEFINE dm_mask_maxdepth_row .0 |
623 | 57 #DEFINE dm_mask_maxdepth_col .73 |
58 #DEFINE dm_mask_maxdepth_col_nvsi .63 | |
59 | |
582 | 60 #DEFINE dm_mask_divetime_row .0 |
623 | 61 #DEFINE dm_mask_divetime_column .122 |
62 | |
0 | 63 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
64 ; The content row contains 3 columns: |
582 | 65 ; - depth and ascend rate warning |
66 ; - max depth and warning messages | |
67 ; - dive time, apnea dive times and warning icon | |
623 | 68 |
69 | |
634 | 70 ;----------------------------------------------------------------------------- |
71 ; Upper Content / Content Row / 1st Column | |
72 | |
73 ; Global | |
623 | 74 #DEFINE dm_offset .14 ; 14 start of content row |
75 | |
76 ; Depth - full meters or feet | |
77 #DEFINE dm_depth_row_large dm_offset ; 14 | |
78 #DEFINE dm_depth_col_large .0 ; 0 | |
79 #DEFINE dm_depth_bot_large dm_depth_row_large+.61 ; 75 | |
80 #DEFINE dm_depth_rgt_large dm_depth_col_large+.59 ; 59 | |
81 #DEFINE dm_depth_row_huge .7 ; 7 | |
82 #DEFINE dm_depth_col_huge .0 ; 0 | |
83 #DEFINE dm_depth_bot_huge dm_depth_row_huge+.90 ; 97 | |
84 #DEFINE dm_depth_rgt_huge dm_depth_col_huge+.90 ; 90 | |
85 | |
86 ; Depth - position of decimeters (shown if depth < 100 m) | |
87 #DEFINE dm_depth_dm_row_medium dm_depth_row_large+.25 ; 39 | |
88 #DEFINE dm_depth_dm_col_medium dm_depth_col_large+.40 ; 40 | |
89 #DEFINE dm_depth_dm_row_large .37 ; 37 | |
90 #DEFINE dm_depth_dm_col_large dm_depth_col_large+.58 ; 58 | |
0 | 91 |
623 | 92 ; ascend rate - textual display |
93 #DEFINE dm_velocity_text_row_norm dm_depth_row_large+.62 ; 76 | |
94 #DEFINE dm_velocity_text_col_norm dm_depth_col_large ; 0 | |
95 #DEFINE dm_velocity_text_bot_norm dm_velocity_text_row_norm+.23 ; 99 | |
96 #DEFINE dm_velocity_text_rgt_norm dm_depth_rgt_large ; 59 | |
97 | |
98 ; ascend/descend rate - graphical display | |
99 #DEFINE dm_velocity_graph_top dm_offset+.10 ; 24 | |
634 | 100 #DEFINE dm_velocity_graph_lft dm_depth_rgt_large+.3 ; 61 |
623 | 101 #DEFINE dm_velocity_graph_bot dm_velocity_graph_top+.70 ; 94 |
634 | 102 #DEFINE dm_velocity_graph_rgt dm_upcnt_2ndcol-.3 ; 72 |
103 #DEFINE dm_velocity_graph_width .10 ; 12 | |
623 | 104 |
105 | |
634 | 106 ;----------------------------------------------------------------------------- |
107 ; Upper Content / Content Row / 2nd Column | |
623 | 108 |
109 ; Start column | |
634 | 110 #DEFINE dm_upcnt_2ndcol .74 ; 74 (vertical speed indicator enabled) |
111 #DEFINE dm_upcnt_2ndcol_nvsi .64 ; 64 (vertical speed indicator disabled) | |
623 | 112 |
113 ; max depth | |
604 | 114 #DEFINE dm_max_depth_row dm_offset ; 14 |
115 #DEFINE dm_max_depth_column dm_upcnt_2ndcol ; 74 | |
116 #DEFINE dm_max_depth_column_nvsi dm_upcnt_2ndcol_nvsi ; 64 | |
117 #DEFINE dm_max_depth_bot dm_max_depth_row+.34 ; 48 | |
582 | 118 #DEFINE dm_max_depth_rgt dm_max_depth_column+.36 ; 100 |
604 | 119 #DEFINE dm_max_depth_dm_row dm_max_depth_row+.11 ; 25 |
120 #DEFINE dm_max_depth_dm_column dm_max_depth_column+.23 ; 87 | |
121 #DEFINE dm_max_depth_dm_column_nvsi dm_max_depth_column_nvsi+.23 ; 77 | |
122 #DEFINE dm_max_alt_column .0 ; 0 | |
582 | 123 #DEFINE dm_max_alt_row .170 ; 170 |
604 | 124 #DEFINE dm_max_dm_alt_column dm_max_alt_column+.60 ; 60 |
623 | 125 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
126 ; Warning area (combined) |
604 | 127 #DEFINE dm_warning_row dm_offset+.36 ; 50 |
634 | 128 #DEFINE dm_warning_column dm_upcnt_2ndcol+.23 ; 97 |
604 | 129 #DEFINE dm_warning_bot dm_warning_row+.49 ; 99 |
582 | 130 #DEFINE dm_warning_rgt dm_warning_column+.62 ; 136 |
623 | 131 #DEFINE dm_warning_length .9 ; total string length in number of characters |
132 | |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
133 ; Warning row #1 |
604 | 134 #DEFINE dm_warning1_row dm_warning_row ; 50 |
135 #DEFINE dm_warning1_column dm_warning_column ; 64 | |
136 #DEFINE dm_warning1_bot dm_warning1_row+.23 ; 73 | |
582 | 137 #DEFINE dm_warning1_rgt dm_warning_rgt ; 136 |
623 | 138 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
139 ; Warning row #2 |
604 | 140 #DEFINE dm_warning2_row dm_warning_row+.24 ; 74 |
141 #DEFINE dm_warning2_column dm_warning_column ; 64 | |
142 #DEFINE dm_warning2_bot dm_warning2_row+.23 ; 97 | |
582 | 143 #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
|
144 |
623 | 145 |
634 | 146 ;----------------------------------------------------------------------------- |
147 ; Upper Content / Content Row / 3rd Column | |
623 | 148 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
149 ; Dive time |
604 | 150 #DEFINE dm_divetime_row dm_offset ; 14 |
623 | 151 #DEFINE dm_divetime_col_medium .115 ; 115 |
152 #DEFINE dm_divetime_col_large .91 ; 91 | |
153 #DEFINE dm_divetime_bot_medium dm_divetime_row+.34 ; 48 | |
154 #DEFINE dm_divetime_bot_large dm_divetime_row+.57 ; 71 | |
582 | 155 #DEFINE dm_divetime_rgt .159 ; 159 |
623 | 156 |
157 #DEFINE dm_divetime_sec_row_small dm_divetime_row+.11 ; 25 | |
158 #DEFINE dm_divetime_sec_col_small dm_divetime_col_medium+.23 ; 138 | |
159 #DEFINE dm_divetime_minonly_col_medium .111 ; 111 | |
160 | |
161 #DEFINE dm_divetime_sec_row_medium dm_divetime_sec_row_small+.13 ; 38 | |
162 #DEFINE dm_divetime_sec_col_medium dm_divetime_col_large+.39 ; 130 | |
163 #DEFINE dm_divetime_minonly_col_large dm_divetime_col_large+.8 ; 99 | |
164 | |
165 ; Sign - normal layout | |
166 #DEFINE dm_sign_row_norm dm_offset+.41 ; 55 | |
167 #DEFINE dm_sign_col_norm .74 ; 74 | |
168 #DEFINE dm_sign_bot_norm dm_sign_row_norm+.38 ; 93 | |
169 #DEFINE dm_sign_rgt_norm dm_sign_col_norm+.22 ; 96 | |
170 | |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
171 ; Apnea dive time |
604 | 172 #DEFINE dm_divetime_apnoe_row dm_offset ; 14 |
623 | 173 #DEFINE dm_divetime_apnoe_col .115 ; 115 |
604 | 174 #DEFINE dm_divetime_apnoe_secs_row dm_divetime_apnoe_row+.11 ; 25 |
623 | 175 #DEFINE dm_divetime_apnoe_secs_col dm_divetime_apnoe_col+.24 ; 139 |
176 | |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
177 ; Apnea total time |
604 | 178 #DEFINE dm_apnoe_total_divetime_row dm_divetime_apnoe_row+.50 ; 64 |
623 | 179 #DEFINE dm_apnoe_total_divetime_col .103 ; 103 |
604 | 180 #DEFINE dm_apnoe_total_divetime_secs_row dm_apnoe_total_divetime_row+.11 ; 75 |
623 | 181 #DEFINE dm_apnoe_total_divetime_secs_col dm_apnoe_total_divetime_col+.36 ; 139 |
604 | 182 #DEFINE dm_total_apnoe_text_row dm_apnoe_total_divetime_row-.11 ; 53 |
623 | 183 #DEFINE dm_total_apnoe_text_col .132 ; 132 |
184 | |
634 | 185 |
186 ;----------------------------------------------------------------------------- | |
187 ; 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
|
188 |
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
189 ; 1px space between the 1st and 2nd content rows |
582 | 190 #DEFINE dm_sep_1_2_row dm_offset+.86 ; 100 |
0 | 191 |
623 | 192 |
634 | 193 ;----------------------------------------------------------------------------- |
623 | 194 ; II. custom/selectable content row |
634 | 195 ;----------------------------------------------------------------------------- |
623 | 196 |
604 | 197 ; The custom view display area is: 101,163,0,159 (t,b,l,r), or 0,101->159,163 |
198 | |
634 | 199 ;----------------------------------------------------------------------------- |
200 ; Custom View: Global | |
623 | 201 |
582 | 202 #DEFINE dm_customview_row dm_offset+.87 ; 101 |
604 | 203 #DEFINE dm_customview_column .0 ; 0 |
582 | 204 #DEFINE dm_customview_bot dm_customview_row+.62 ; 163 |
205 #DEFINE dm_customview_rgt .159 ; 159 | |
0 | 206 |
623 | 207 |
634 | 208 ;----------------------------------------------------------------------------- |
209 ; Custom View: avg Depth, Stopwatch and avg Depth | |
623 | 210 |
582 | 211 #DEFINE dm_custom_avr_stop_title_row dm_customview_row+.1 ; 102 |
212 #DEFINE dm_custom_avr_stop_row dm_customview_row+.16 ; 117 | |
604 | 213 #DEFINE dm_custom_avr_stop_column1 .0 ; 0 |
214 #DEFINE dm_custom_avr_stop_column2 .54 ; 54 | |
582 | 215 #DEFINE dm_custom_avr_stop_column3 .118 ; 118 |
0 | 216 |
623 | 217 |
634 | 218 ;----------------------------------------------------------------------------- |
219 ; Custom View: Decompressions Stops | |
623 | 220 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
221 ; Title |
582 | 222 #DEFINE dm_custom_decoplan_title_row dm_customview_row ; 101 |
623 | 223 #DEFINE dm_custom_decoplan_title_column .60 ; 60 |
224 | |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
225 ; 1st col |
582 | 226 #DEFINE dm_cust_dstop_2nd_stop_row dm_customview_row+.14 ; 115 |
604 | 227 #DEFINE dm_cust_dstop_2nd_stop_column .0 ; 0 |
582 | 228 #DEFINE dm_cust_dstop_3rd_stop_row dm_customview_row+.37 ; 138 |
604 | 229 #DEFINE dm_cust_dstop_3rd_stop_column dm_cust_dstop_2nd_stop_column ; 0 |
623 | 230 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
231 ; 2nd col |
604 | 232 #DEFINE dm_cust_dstop_4th_stop_row dm_cust_dstop_2nd_stop_row ; 115 |
233 #DEFINE dm_cust_dstop_4th_stop_column .56 ; 56 | |
234 #DEFINE dm_cust_dstop_5th_stop_row dm_cust_dstop_3rd_stop_row ; 138 | |
235 #DEFINE dm_cust_dstop_5th_stop_column dm_cust_dstop_4th_stop_column ; 56 | |
623 | 236 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
237 ; 3rd col |
604 | 238 #DEFINE dm_cust_dstop_6th_stop_row dm_cust_dstop_2nd_stop_row ; 115 |
582 | 239 #DEFINE dm_cust_dstop_6th_stop_column .111 ; 111 |
604 | 240 #DEFINE dm_cust_dstop_7th_stop_row dm_cust_dstop_3rd_stop_row ; 138 |
582 | 241 #DEFINE dm_cust_dstop_7th_stop_column dm_cust_dstop_6th_stop_column ; 111 |
0 | 242 |
623 | 243 |
634 | 244 ;----------------------------------------------------------------------------- |
245 ; Custom View: Time, Battery, Surface Pressure | |
623 | 246 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
247 ; Clock |
582 | 248 #DEFINE dm_custom_clock_title_row dm_customview_row+.1 ; 102 |
249 #DEFINE dm_custom_clock_row dm_customview_row+.16 ; 117 | |
604 | 250 #DEFINE dm_custom_clock_column .0 ; 0 |
623 | 251 |
604 | 252 ; Battery |
253 #DEFINE dm_custom_battery_title_row dm_customview_row+.1 ; 102 | |
634 | 254 #DEFINE dm_custom_battery_volt_row dm_customview_row+.15 ; 116 |
255 #DEFINE dm_custom_battery_percent_row dm_custom_ead_row+.21 ; 138 | |
604 | 256 #DEFINE dm_custom_battery_column .62 ; 62 |
623 | 257 |
604 | 258 ; Surface Pressure |
259 #DEFINE dm_custom_surfpres_title_row dm_customview_row+.1 ; 102 | |
260 #DEFINE dm_custom_surfpres_row dm_customview_row+.16 ; 117 | |
261 #DEFINE dm_custom_surfpres_column .95 ; 95 | |
262 | |
623 | 263 |
634 | 264 ;----------------------------------------------------------------------------- |
265 ; Custom View: ppO2, EAD/ENDS and CNS | |
623 | 266 |
604 | 267 ; ppO2 |
268 #DEFINE dm_custom_ppo2_title_row dm_customview_row+.1 ; 102 | |
269 #DEFINE dm_custom_ppo2_row dm_customview_row+.18 ; 119 | |
270 #DEFINE dm_custom_ppo2_column .2 ; 2 | |
623 | 271 |
604 | 272 ; EAD/END |
582 | 273 #DEFINE dm_custom_eadend_title_row dm_customview_row+.1 ; 102 |
634 | 274 #DEFINE dm_custom_ead_row dm_customview_row+.14 ; 115 |
604 | 275 #DEFINE dm_custom_ead_column .50 ; 50 |
634 | 276 #DEFINE dm_custom_end_row dm_custom_ead_row+.21 ; 138 |
604 | 277 #DEFINE dm_custom_end_column dm_custom_ead_column ; 50 |
623 | 278 |
604 | 279 ; CNS |
280 #DEFINE dm_custom_cns_title_row dm_customview_row+.1 ; 102 | |
281 #DEFINE dm_custom_cns_row dm_customview_row+.18 ; 119 | |
282 #DEFINE dm_custom_cns_column .115 ; 115 | |
283 | |
623 | 284 |
634 | 285 ;----------------------------------------------------------------------------- |
286 ; Custom View: tripple CNS | |
623 | 287 |
604 | 288 #DEFINE dm_custom_cns3_title_row dm_customview_row+.1 ; 102 |
289 #DEFINE dm_custom_cns3_row dm_customview_row+.16 ; 117 | |
290 #DEFINE dm_custom_cns3_column1 .8 ; 8 | |
291 #DEFINE dm_custom_cns3_column2 .62 ; 62 | |
292 #DEFINE dm_custom_cns3_column3 .115 ; 115 | |
293 | |
623 | 294 |
634 | 295 ;----------------------------------------------------------------------------- |
296 ; Custom View: Ceiling, Tissues, (current GF) | |
623 | 297 |
604 | 298 ; Ceiling |
299 #DEFINE dm_custom_ceiling_title_row dm_customview_row+.1 ; 102 | |
300 #DEFINE dm_custom_ceiling_row dm_customview_row+.18 ; 119 | |
301 #DEFINE dm_custom_ceiling_column .62 ; 62 | |
623 | 302 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
303 ; Tissue title |
582 | 304 #DEFINE dm_custom_tissue_title_row dm_customview_row+.1 ; 102 |
305 #DEFINE dm_custom_tissue_title_column .120 ; 120 | |
623 | 306 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
307 ; N2 / He values |
582 | 308 #DEFINE dm_custom_tissue_N2_row dm_custom_ead_row+.5 ; 122 |
309 #DEFINE dm_custom_tissue_N2_column .105 ; 105 | |
310 #DEFINE dm_custom_tissue_He_row dm_custom_end_row+.5 ; 145 | |
311 #DEFINE dm_custom_tissue_He_column dm_custom_tissue_N2_column ; 105 | |
623 | 312 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
313 ; Tissue diagram |
582 | 314 #DEFINE dm_custom_tissue_diagram_top dm_customview_row+.16 ; 117 |
315 #DEFINE dm_custom_tissue_diagram_bottom dm_custom_tissue_diagram_top+.43; 160 | |
316 #DEFINE dm_custom_tissue_diagram_left .116 ; 116 | |
604 | 317 #DEFINE dm_custom_tissue_diagram_frame_spacing .8 ; 8 |
0 | 318 |
623 | 319 |
634 | 320 ;----------------------------------------------------------------------------- |
321 ; Custom View: GF-lo/hi, aGF-lo/hi, current GF Value | |
623 | 322 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
323 ; Title |
582 | 324 #DEFINE dm_custom_gf_title_row dm_customview_row+.1 ; 102 |
325 #DEFINE dm_custom_gf_row dm_customview_row+.18 ; 119 | |
604 | 326 #DEFINE dm_custom_gf_column1 .0 ; 0 |
608 | 327 #DEFINE dm_custom_gf_column2 .65 ; 65 |
328 #DEFINE dm_custom_gf_column3 .95 ; 95 | |
123 | 329 |
623 | 330 |
634 | 331 ;----------------------------------------------------------------------------- |
332 ; Custom View: Compass | |
623 | 333 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
334 ; Title |
582 | 335 #DEFINE dm_custom_compass_mask_row dm_customview_row ; 101 |
604 | 336 #DEFINE dm_custom_compass_mask_column .65 ; 65 |
623 | 337 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
338 ; Head and arrows |
634 | 339 #DEFINE dm_custom_compass_head_row dm_customview_row+.37 ; 138 |
604 | 340 #DEFINE dm_custom_compass_head_column .62 ; 62 |
341 #DEFINE dm_custom_compass_ldir_column .5 ; 5 | |
634 | 342 #DEFINE dm_custom_compass_rdir_column .138 ; 138 |
623 | 343 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
344 ; Ruler |
582 | 345 #DEFINE dm_custom_compass_graph_row dm_customview_row ; 101 |
604 | 346 #DEFINE dm_custom_compass_graph_height .33 ; 33 |
347 #DEFINE dm_custom_compass_tick_height .3 ; 3 | |
582 | 348 #DEFINE dm_custom_compass_tick_top_top dm_custom_compass_graph_row+.1 ; 102 |
349 #DEFINE dm_custom_compass_tick_top_bot dm_custom_compass_graph_row+.4 ; 105 | |
350 #DEFINE dm_custom_compass_label_row dm_custom_compass_graph_row+.6 ; 107 | |
604 | 351 #DEFINE dm_custom_compass_label_height .24 ; 24 |
582 | 352 #DEFINE dm_custom_compass_tick_bot_top dm_custom_compass_graph_row+.30 ; 131 |
353 #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
|
354 |
623 | 355 |
634 | 356 ;----------------------------------------------------------------------------- |
357 ; Custom View: O2 Sensor Values | |
623 | 358 |
604 | 359 #DEFINE dm_custom_hud_title_row dm_customview_row+.1 ; 102 |
360 #DEFINE dm_custom_hud_row dm_customview_row+.16 ; 117 | |
361 #DEFINE dm_custom_hud_sensor1_column .6 ; 6 | |
362 #DEFINE dm_custom_hud_sensor2_column .62 ; 62 | |
582 | 363 #DEFINE dm_custom_hud_sensor3_column .118 ; 118 |
0 | 364 |
623 | 365 |
634 | 366 ;----------------------------------------------------------------------------- |
367 ; Custom View: Gas Needs | |
623 | 368 |
604 | 369 #DEFINE dm_custom_gas_mask_row dm_customview_row ; 101 |
370 #DEFINE dm_custom_gas_row1 dm_customview_row+.14 ; 115 | |
371 #DEFINE dm_custom_gas_row2 dm_customview_row+.37 ; 138 | |
634 | 372 #DEFINE dm_custom_gas_column_title .20 ; 20 |
604 | 373 #DEFINE dm_custom_gas_column1 .5 ; 5 |
374 #DEFINE dm_custom_gas_column2 .85 ; 85 | |
0 | 375 |
623 | 376 |
634 | 377 ;----------------------------------------------------------------------------- |
378 ; Custom View: Tank Pressures | |
623 | 379 |
604 | 380 #DEFINE dm_custom_tankdata_mask_row dm_customview_row+.1 ; 102 |
381 #DEFINE dm_custom_tankdata_row dm_customview_row+.16 ; 117 | |
382 #DEFINE dm_custom_tankdata_pres1_col .2 ; 2 | |
383 #DEFINE dm_custom_tankdata_pres2_col .115 ; 115 | |
384 #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
|
385 |
623 | 386 |
634 | 387 ;----------------------------------------------------------------------------- |
388 ; Custom View: Sensor Check | |
623 | 389 |
604 | 390 #DEFINE dm_custom_s_check_title_row dm_customview_row+.1 ; 102 |
391 #DEFINE dm_custom_s_check_row dm_customview_row+.18 ; 119 | |
392 #DEFINE dm_custom_s_check_title_column .50 ; 50 | |
393 #DEFINE dm_custom_ppO2_column .115 ; 115 | |
394 #DEFINE dm_custom_ppDil_column .2 ; 2 | |
582 | 395 |
623 | 396 |
634 | 397 ;----------------------------------------------------------------------------- |
398 ; Custom View: pSCR Info | |
623 | 399 |
604 | 400 #DEFINE dm_custom_pscr_title_row dm_customview_row+.1 ; 102 |
401 #DEFINE dm_custom_pscr_row dm_customview_row+.18 ; 119 | |
402 #DEFINE dm_custom_pscr_drop_column .55 ; 55 | |
403 #DEFINE dm_custom_pscr_ratio_column .105 ; 105 | |
404 | |
623 | 405 |
634 | 406 ;----------------------------------------------------------------------------- |
407 ; Custom View: cave TTS | |
631 | 408 |
409 #DEFINE dm_custom_cave_title_row dm_customview_row+.1 ; 102 | |
410 #DEFINE dm_custom_cave_title_column1 .2 ; 2 | |
411 #DEFINE dm_custom_cave_title_column2 .64 ; 64 | |
412 #DEFINE dm_custom_cave_title_column3 .118 ; 118 | |
413 | |
414 #DEFINE dm_custom_cave_data_row dm_customview_row+.16 ; 117 | |
415 #DEFINE dm_custom_cave_data_column1 .8 ; 8 | |
416 #DEFINE dm_custom_cave_data_column2 .60 ; 60 | |
417 #DEFINE dm_custom_cave_data_column3 .114 ; 114 | |
418 | |
419 | |
634 | 420 ;----------------------------------------------------------------------------- |
421 ; 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
|
422 |
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
423 ; 1px space between the 2nd and 3rd content rows |
582 | 424 #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
|
425 |
131 | 426 |
634 | 427 ;----------------------------------------------------------------------------- |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
428 ; III. The 3rd content row contains temperature, active gas, NDL/TTS time, |
634 | 429 ; simulator menu, active/dil gas, decostop, Apnea surface time and max depth |
430 ;----------------------------------------------------------------------------- | |
431 | |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
432 ; The content row contains 2 columns: |
582 | 433 ; - temperature, gas names |
604 | 434 ; - NDL/TTS, DecoStop |
623 | 435 |
582 | 436 #DEFINE dm_3rdrow_top dm_offset+.151 ; 165 |
437 #DEFINE dm_3rdrow_bot .239 ; 239 | |
604 | 438 #DEFINE dm_3rdrow_lft .0 ; 0 |
582 | 439 #DEFINE dm_3rdrow_rgt .159 ; 159 |
0 | 440 |
623 | 441 |
634 | 442 ;----------------------------------------------------------------------------- |
443 ; Bottom Content / 1st Column | |
623 | 444 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
445 ; Temperature |
623 | 446 #DEFINE dm_temp_row dm_3rdrow_top-.3 ; 162 |
447 #DEFINE dm_temp_column dm_3rdrow_lft ; 0 | |
448 | |
449 ; Simulation text (pre-menu) | |
450 #DEFINE dm_premenu_row dm_3rdrow_top-.3 ; 162 | |
451 #DEFINE dm_premenu_col dm_3rdrow_lft ; 0 | |
452 #DEFINE dm_premenu_bot dm_premenu_row+.23 ; 185 | |
453 #DEFINE dm_premenu_rgt dm_premenu_col+.43 ; 43 | |
454 | |
455 ; ascend rate - alternative textual display | |
456 #DEFINE dm_velocity_text_row_alt dm_temp_row ; 162 | |
457 #DEFINE dm_velocity_text_col_alt .45 ; 45 | |
458 #DEFINE dm_velocity_text_bot_alt dm_velocity_text_row_alt+.23 ; 185 | |
459 #DEFINE dm_velocity_text_rgt_alt dm_velocity_text_col_alt+.34 ; 79 | |
460 | |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
461 ; Diluent gas |
623 | 462 #DEFINE dm_active_dil_row dm_3rdrow_top+.21 ; 186 |
463 #DEFINE dm_active_dil_column dm_3rdrow_lft ; 0 | |
464 | |
465 ; OC gas, blinking better gas, setpoint or bailout for CCR/pSCR | |
466 #DEFINE dm_active_gas_sp_value_row .208 ; 208 | |
467 #DEFINE dm_active_gas_sp_value_col dm_3rdrow_lft ; 0 | |
468 #DEFINE dm_active_sp_label_row dm_active_gas_sp_value_row ; 208 | |
469 #DEFINE dm_active_sp_label_col dm_active_gas_sp_value_col+.45 ; 45 | |
470 | |
471 ; Sign - alternative layout | |
472 #DEFINE dm_sign_row_alt .193 ; 193 | |
473 #DEFINE dm_sign_col_alt .52 ; 52 | |
474 #DEFINE dm_sign_bot_alt dm_sign_row_alt+.38 ; 231 | |
475 #DEFINE dm_sign_rgt_alt dm_sign_col_alt+.22 ; 74 | |
0 | 476 |
634 | 477 |
478 ;----------------------------------------------------------------------------- | |
479 ; Bottom content / 2nd Column | |
623 | 480 |
481 ; 1st Deco Stop | |
482 #DEFINE dm_decostop_row_norm dm_3rdrow_top ; 165 | |
483 #DEFINE dm_decostop_col_norm .82 ; 82 | |
484 #DEFINE dm_decostop_row_alt_depth dm_decostop_row_norm-.1 ; 164 | |
485 #DEFINE dm_decostop_col_alt_depth dm_decostop_col_norm-.1 ; 81 | |
486 #DEFINE dm_decostop_row_alt_time dm_decostop_row_norm ; 165 | |
487 #DEFINE dm_decostop_col_alt_time dm_decostop_col_norm+.47 ; 129 | |
488 | |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
489 ; Safety Stop |
582 | 490 #DEFINE dm_safetystop_row dm_3rdrow_top ; 165 |
491 #DEFINE dm_safetystop_column .118 ; 118 | |
492 #DEFINE dm_safetystop_bot dm_safetystop_row+.31 ; 196 | |
623 | 493 #DEFINE dm_safetystop_rgt .159 ; 159 |
582 | 494 #DEFINE dm_safetystop_text_row dm_safetystop_row+.1 ; 166 |
623 | 495 #DEFINE dm_safetystop_text_column .80 ; 80 for the 4 chars "Stop" |
496 | |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
497 ; TTS |
623 | 498 #DEFINE dm_tts_value_row dm_3rdrow_top+.43 ; 208 |
499 #DEFINE dm_tts_value_col_99 .129 ; 129 | |
500 #DEFINE dm_tts_value_col_999 .124 ; 122 | |
501 #DEFINE dm_tts_value_col_999x .118 ; 118 | |
502 #DEFINE dm_tts_text_row_norm dm_tts_value_row ; 208 | |
503 #DEFINE dm_tts_text_col_norm .85 ; 85 | |
504 #DEFINE dm_tts_text_row_alt dm_tts_value_row+.18 ; 226 | |
505 #DEFINE dm_tts_text_col_alt .86 ; 86 | |
506 | |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
507 ; NDL - the same position as TTS |
623 | 508 #DEFINE dm_ndl_value_row_norm dm_tts_value_row ; 208 |
509 #DEFINE dm_ndl_value_col_norm .118 ; 118 | |
510 #DEFINE dm_ndl_value_row_alt .182 ; 182 | |
511 #DEFINE dm_ndl_value_col_alt .120 ; 120 | |
512 #DEFINE dm_ndl_text_row dm_tts_text_row_norm ; 202 | |
513 #DEFINE dm_ndl_text_column dm_tts_text_col_norm ; 85 | |
514 | |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
515 ; FTTS (only modded screen) |
582 | 516 #DEFINE dm_ftts_value_row dm_3rdrow_top+.64 ; 215 |
604 | 517 #DEFINE dm_ftts_value_column .97 ; 97 |
623 | 518 |
315
4f83470dcece
VSIbar #3: remaining changes for the split style bar
Janos Kovacs <kovjanos@gmail.com>
parents:
310
diff
changeset
|
519 ; Grid line (only modded screen) |
582 | 520 #DEFINE dm_gassep_row dm_sep_2_3_row ; 164 |
604 | 521 #DEFINE dm_gassep_bot .239 ; 239 |
522 #DEFINE dm_gassep_column .78 ; 78 | |
0 | 523 |
623 | 524 |
634 | 525 ;----------------------------------------------------------------------------- |
526 ; Bottom Content / Apnea Mode | |
623 | 527 |
528 #DEFINE dm_apnoe_last_max_depth_text_row .192 ; 192 | |
529 #DEFINE dm_apnoe_last_max_depth_text_col .20 ; 20 | |
530 #DEFINE dm_apnoe_last_max_depth_row .207 ; 207 | |
531 #DEFINE dm_apnoe_last_max_depth_column .15 ; 15 | |
532 | |
604 | 533 #DEFINE dm_apnoe_surface_time_text_row .192 ; 192 |
623 | 534 #DEFINE dm_apnoe_surface_time_text_col .100 ; 100 |
604 | 535 #DEFINE dm_apnoe_surface_time_row .207 ; 207 |
623 | 536 #DEFINE dm_apnoe_surface_time_column .80 ; 80 |
537 | |
538 | |
634 | 539 ;----------------------------------------------------------------------------- |
540 ; Bottom content / Gauge mode | |
541 | |
623 | 542 #DEFINE dm_gauge_max_depth_text_row .192 |
543 #DEFINE dm_gauge_max_depth_text_col .25 | |
544 #DEFINE dm_gauge_max_depth_row .207 | |
545 #DEFINE dm_gauge_max_depth_col .15 | |
546 | |
547 #DEFINE dm_gauge_avg_depth_text_row .192 | |
548 #DEFINE dm_gauge_avg_depth_text_col .100 | |
549 #DEFINE dm_gauge_avg_depth_row .207 | |
550 #DEFINE dm_gauge_avg_depth_col .85 | |
551 | |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
552 |
634 | 553 ;----------------------------------------------------------------------------- |
554 ; IV. The last set of parameters is for the menu displayed in dive mode | |
555 ;----------------------------------------------------------------------------- | |
623 | 556 |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
255
diff
changeset
|
557 ; Divemode menu |
623 | 558 #DEFINE dm_menu_row .164 ; 164 upper row, the frame's top line is the separator |
559 #DEFINE dm_menu_lower .239 ; 239 lower border | |
560 #DEFINE dm_menu_left .0 ; 0 left | |
561 #DEFINE dm_menu_right .159 ; 159 right | |
83 | 562 |
582 | 563 #DEFINE dm_menu_item1_row dm_menu_row+.1 ; 165 |
604 | 564 #DEFINE dm_menu_item1_column .9 ; 9 |
582 | 565 #DEFINE dm_menu_item2_row dm_menu_item1_row+.24 ; 189 |
604 | 566 #DEFINE dm_menu_item2_column dm_menu_item1_column ; 9 |
582 | 567 #DEFINE dm_menu_item3_row dm_menu_item2_row+.24 ; 213 |
604 | 568 #DEFINE dm_menu_item3_column dm_menu_item1_column ; 9 |
83 | 569 |
582 | 570 #DEFINE dm_menu_item4_row dm_menu_row+.1 ; 165 |
604 | 571 #DEFINE dm_menu_item4_column .89 ; 89 |
582 | 572 #DEFINE dm_menu_item5_row dm_menu_item4_row+.24 ; 189 |
604 | 573 #DEFINE dm_menu_item5_column dm_menu_item4_column ; 89 |
582 | 574 #DEFINE dm_menu_item6_row dm_menu_item5_row+.24 ; 213 |
604 | 575 #DEFINE dm_menu_item6_column dm_menu_item4_column ; 89 |