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