Mercurial > public > hwos_code
comparison src/divemode.inc @ 634:4050675965ea
3.10 stable release
author | heinrichsweikamp |
---|---|
date | Tue, 28 Apr 2020 17:34:31 +0200 |
parents | 185ba2f91f59 |
children | 75e90cd0c2c3 |
comparison
equal
deleted
inserted
replaced
633:690c48db7b5b | 634:4050675965ea |
---|---|
1 ;============================================================================= | 1 ;============================================================================= |
2 ; | 2 ; |
3 ; File divemode.inc combined next generation V3.08.5 | 3 ; File divemode.inc * combined next generation V3.09.4g |
4 ; | 4 ; |
5 ; | 5 ; |
6 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved. | 6 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved. |
7 ;============================================================================= | 7 ;============================================================================= |
8 ; HISTORY | 8 ; HISTORY |
9 ; 2011-08-15 : [mH] moving from OSTC code | 9 ; 2011-08-15 : [mH] moving from OSTC code |
10 | 10 |
11 extern set_dive_modes | 11 |
12 extern diveloop | 12 extern diveloop |
13 extern check_dive_modes_surf | |
13 extern apnoe_calc_maxdepth | 14 extern apnoe_calc_maxdepth |
14 extern check_gas_best | 15 extern check_gas_best |
15 extern setup_gas_registers | 16 extern setup_gas_registers |
16 extern deco_setup_oc_gases | 17 extern deco_setup_oc_gases |
17 | 18 |
27 | 28 |
28 ; Divemode layout: | 29 ; Divemode layout: |
29 ; row = 0...239 | 30 ; row = 0...239 |
30 ; column = 0...159 (x2) | 31 ; column = 0...159 (x2) |
31 | 32 |
33 | |
32 ; Divemode has multiple layouts but basicly splits the screen into 3 rows: | 34 ; Divemode has multiple layouts but basicly splits the screen into 3 rows: |
33 ; - upper content row: depth, max depth, dive time, etc. | 35 ; - upper content row: depth, max depth, dive time, etc. |
34 ; - custom content row: selectable views | 36 ; - custom content row: selectable views |
35 ; - bottom content row: temp, gas, ndl, tts, etc. | 37 ; - bottom content row: temp, gas, ndl, tts, etc. |
36 | 38 |
39 | |
40 ;----------------------------------------------------------------------------- | |
37 ; I. The upper content row (0-99) | 41 ; I. The upper content row (0-99) |
42 ;----------------------------------------------------------------------------- | |
43 | |
38 ; The top row is divided in 2 areas: | 44 ; The top row is divided in 2 areas: |
39 ; - header : holds the titles (mask) | 45 ; - header : holds the titles (mask) |
40 ; - content: holds the values | 46 ; - content: holds the values |
41 | 47 |
42 ;******* upper content / header row ******* | 48 |
49 ;----------------------------------------------------------------------------- | |
50 ; Upper Content / Header Row | |
43 | 51 |
44 #DEFINE dm_mask_depth_row .0 | 52 #DEFINE dm_mask_depth_row .0 |
45 #DEFINE dm_mask_depth_column .2 | 53 #DEFINE dm_mask_depth_column .2 |
46 #DEFINE dm_mask_depth_column_alt .64 | 54 #DEFINE dm_mask_depth_column_alt .64 |
47 | 55 |
56 ; The content row contains 3 columns: | 64 ; The content row contains 3 columns: |
57 ; - depth and ascend rate warning | 65 ; - depth and ascend rate warning |
58 ; - max depth and warning messages | 66 ; - max depth and warning messages |
59 ; - dive time, apnea dive times and warning icon | 67 ; - dive time, apnea dive times and warning icon |
60 | 68 |
61 ;******* upper content / content row / 1st col ******* | 69 |
62 | 70 ;----------------------------------------------------------------------------- |
63 ; GLOBAL | 71 ; Upper Content / Content Row / 1st Column |
72 | |
73 ; Global | |
64 #DEFINE dm_offset .14 ; 14 start of content row | 74 #DEFINE dm_offset .14 ; 14 start of content row |
65 | 75 |
66 ; Depth - full meters or feet | 76 ; Depth - full meters or feet |
67 #DEFINE dm_depth_row_large dm_offset ; 14 | 77 #DEFINE dm_depth_row_large dm_offset ; 14 |
68 #DEFINE dm_depth_col_large .0 ; 0 | 78 #DEFINE dm_depth_col_large .0 ; 0 |
85 #DEFINE dm_velocity_text_bot_norm dm_velocity_text_row_norm+.23 ; 99 | 95 #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 | 96 #DEFINE dm_velocity_text_rgt_norm dm_depth_rgt_large ; 59 |
87 | 97 |
88 ; ascend/descend rate - graphical display | 98 ; ascend/descend rate - graphical display |
89 #DEFINE dm_velocity_graph_top dm_offset+.10 ; 24 | 99 #DEFINE dm_velocity_graph_top dm_offset+.10 ; 24 |
90 #DEFINE dm_velocity_graph_lft dm_depth_rgt_large+.3 ; 61 +2 / 61 | 100 #DEFINE dm_velocity_graph_lft dm_depth_rgt_large+.3 ; 61 |
91 #DEFINE dm_velocity_graph_bot dm_velocity_graph_top+.70 ; 94 | 101 #DEFINE dm_velocity_graph_bot dm_velocity_graph_top+.70 ; 94 |
92 #DEFINE dm_velocity_graph_rgt dm_upcnt_2ndcol-.3 ; 72 -2 / 72 | 102 #DEFINE dm_velocity_graph_rgt dm_upcnt_2ndcol-.3 ; 72 |
93 #DEFINE dm_velocity_graph_width .10 ; 12 12 | 103 #DEFINE dm_velocity_graph_width .10 ; 12 |
94 | 104 |
95 | 105 |
96 ;******* upper content / content row / 2nd col ******* | 106 ;----------------------------------------------------------------------------- |
107 ; Upper Content / Content Row / 2nd Column | |
97 | 108 |
98 ; Start column | 109 ; Start column |
99 #DEFINE dm_upcnt_2ndcol .74 ; 74 - with vertical speed indicator enabled | 110 #DEFINE dm_upcnt_2ndcol .74 ; 74 (vertical speed indicator enabled) |
100 #DEFINE dm_upcnt_2ndcol_nvsi .64 ; 64 - with vertical speed indicator disabled | 111 #DEFINE dm_upcnt_2ndcol_nvsi .64 ; 64 (vertical speed indicator disabled) |
101 | 112 |
102 ; max depth | 113 ; max depth |
103 #DEFINE dm_max_depth_row dm_offset ; 14 | 114 #DEFINE dm_max_depth_row dm_offset ; 14 |
104 #DEFINE dm_max_depth_column dm_upcnt_2ndcol ; 74 | 115 #DEFINE dm_max_depth_column dm_upcnt_2ndcol ; 74 |
105 #DEFINE dm_max_depth_column_nvsi dm_upcnt_2ndcol_nvsi ; 64 | 116 #DEFINE dm_max_depth_column_nvsi dm_upcnt_2ndcol_nvsi ; 64 |
112 #DEFINE dm_max_alt_row .170 ; 170 | 123 #DEFINE dm_max_alt_row .170 ; 170 |
113 #DEFINE dm_max_dm_alt_column dm_max_alt_column+.60 ; 60 | 124 #DEFINE dm_max_dm_alt_column dm_max_alt_column+.60 ; 60 |
114 | 125 |
115 ; Warning area (combined) | 126 ; Warning area (combined) |
116 #DEFINE dm_warning_row dm_offset+.36 ; 50 | 127 #DEFINE dm_warning_row dm_offset+.36 ; 50 |
117 #DEFINE dm_warning_column dm_upcnt_2ndcol+.23 ; 97 ex +.0 | 128 #DEFINE dm_warning_column dm_upcnt_2ndcol+.23 ; 97 |
118 #DEFINE dm_warning_bot dm_warning_row+.49 ; 99 | 129 #DEFINE dm_warning_bot dm_warning_row+.49 ; 99 |
119 #DEFINE dm_warning_rgt dm_warning_column+.62 ; 136 | 130 #DEFINE dm_warning_rgt dm_warning_column+.62 ; 136 |
120 #DEFINE dm_warning_length .9 ; total string length in number of characters | 131 #DEFINE dm_warning_length .9 ; total string length in number of characters |
121 | 132 |
122 ; Warning row #1 | 133 ; Warning row #1 |
130 #DEFINE dm_warning2_column dm_warning_column ; 64 | 141 #DEFINE dm_warning2_column dm_warning_column ; 64 |
131 #DEFINE dm_warning2_bot dm_warning2_row+.23 ; 97 | 142 #DEFINE dm_warning2_bot dm_warning2_row+.23 ; 97 |
132 #DEFINE dm_warning2_rgt dm_warning_rgt ; 136 | 143 #DEFINE dm_warning2_rgt dm_warning_rgt ; 136 |
133 | 144 |
134 | 145 |
135 ;******* upper content / content row / 3rd col ******* | 146 ;----------------------------------------------------------------------------- |
147 ; Upper Content / Content Row / 3rd Column | |
136 | 148 |
137 ; Dive time | 149 ; Dive time |
138 #DEFINE dm_divetime_row dm_offset ; 14 | 150 #DEFINE dm_divetime_row dm_offset ; 14 |
139 #DEFINE dm_divetime_col_medium .115 ; 115 | 151 #DEFINE dm_divetime_col_medium .115 ; 115 |
140 #DEFINE dm_divetime_col_large .91 ; 91 | 152 #DEFINE dm_divetime_col_large .91 ; 91 |
168 #DEFINE dm_apnoe_total_divetime_secs_row dm_apnoe_total_divetime_row+.11 ; 75 | 180 #DEFINE dm_apnoe_total_divetime_secs_row dm_apnoe_total_divetime_row+.11 ; 75 |
169 #DEFINE dm_apnoe_total_divetime_secs_col dm_apnoe_total_divetime_col+.36 ; 139 | 181 #DEFINE dm_apnoe_total_divetime_secs_col dm_apnoe_total_divetime_col+.36 ; 139 |
170 #DEFINE dm_total_apnoe_text_row dm_apnoe_total_divetime_row-.11 ; 53 | 182 #DEFINE dm_total_apnoe_text_row dm_apnoe_total_divetime_row-.11 ; 53 |
171 #DEFINE dm_total_apnoe_text_col .132 ; 132 | 183 #DEFINE dm_total_apnoe_text_col .132 ; 132 |
172 | 184 |
173 ; I. end of the upper content row. (0-99) | 185 |
186 ;----------------------------------------------------------------------------- | |
187 ; End of the Upper Content Row (0-99) | |
174 | 188 |
175 ; 1px space between the 1st and 2nd content rows | 189 ; 1px space between the 1st and 2nd content rows |
176 #DEFINE dm_sep_1_2_row dm_offset+.86 ; 100 | 190 #DEFINE dm_sep_1_2_row dm_offset+.86 ; 100 |
177 | 191 |
178 | 192 |
193 ;----------------------------------------------------------------------------- | |
179 ; II. custom/selectable content row | 194 ; II. custom/selectable content row |
195 ;----------------------------------------------------------------------------- | |
180 | 196 |
181 ; The custom view display area is: 101,163,0,159 (t,b,l,r), or 0,101->159,163 | 197 ; The custom view display area is: 101,163,0,159 (t,b,l,r), or 0,101->159,163 |
182 | 198 |
183 ;******* Custom View: Global ******* | 199 ;----------------------------------------------------------------------------- |
200 ; Custom View: Global | |
184 | 201 |
185 #DEFINE dm_customview_row dm_offset+.87 ; 101 | 202 #DEFINE dm_customview_row dm_offset+.87 ; 101 |
186 #DEFINE dm_customview_column .0 ; 0 | 203 #DEFINE dm_customview_column .0 ; 0 |
187 #DEFINE dm_customview_bot dm_customview_row+.62 ; 163 | 204 #DEFINE dm_customview_bot dm_customview_row+.62 ; 163 |
188 #DEFINE dm_customview_rgt .159 ; 159 | 205 #DEFINE dm_customview_rgt .159 ; 159 |
189 | 206 |
190 | 207 |
191 ;******* Custom View: Avg depth, stopwatch and avg depth ******* | 208 ;----------------------------------------------------------------------------- |
209 ; Custom View: avg Depth, Stopwatch and avg Depth | |
192 | 210 |
193 #DEFINE dm_custom_avr_stop_title_row dm_customview_row+.1 ; 102 | 211 #DEFINE dm_custom_avr_stop_title_row dm_customview_row+.1 ; 102 |
194 #DEFINE dm_custom_avr_stop_row dm_customview_row+.16 ; 117 | 212 #DEFINE dm_custom_avr_stop_row dm_customview_row+.16 ; 117 |
195 #DEFINE dm_custom_avr_stop_column1 .0 ; 0 | 213 #DEFINE dm_custom_avr_stop_column1 .0 ; 0 |
196 #DEFINE dm_custom_avr_stop_column2 .54 ; 54 | 214 #DEFINE dm_custom_avr_stop_column2 .54 ; 54 |
197 #DEFINE dm_custom_avr_stop_column3 .118 ; 118 | 215 #DEFINE dm_custom_avr_stop_column3 .118 ; 118 |
198 | 216 |
199 | 217 |
200 ;******* Custom View: Decompressions stops ******* | 218 ;----------------------------------------------------------------------------- |
219 ; Custom View: Decompressions Stops | |
201 | 220 |
202 ; Title | 221 ; Title |
203 #DEFINE dm_custom_decoplan_title_row dm_customview_row ; 101 | 222 #DEFINE dm_custom_decoplan_title_row dm_customview_row ; 101 |
204 #DEFINE dm_custom_decoplan_title_column .60 ; 60 | 223 #DEFINE dm_custom_decoplan_title_column .60 ; 60 |
205 | 224 |
220 #DEFINE dm_cust_dstop_6th_stop_column .111 ; 111 | 239 #DEFINE dm_cust_dstop_6th_stop_column .111 ; 111 |
221 #DEFINE dm_cust_dstop_7th_stop_row dm_cust_dstop_3rd_stop_row ; 138 | 240 #DEFINE dm_cust_dstop_7th_stop_row dm_cust_dstop_3rd_stop_row ; 138 |
222 #DEFINE dm_cust_dstop_7th_stop_column dm_cust_dstop_6th_stop_column ; 111 | 241 #DEFINE dm_cust_dstop_7th_stop_column dm_cust_dstop_6th_stop_column ; 111 |
223 | 242 |
224 | 243 |
225 ;******* Custom View: Time, Battery, Surface Pressure ******* | 244 ;----------------------------------------------------------------------------- |
245 ; Custom View: Time, Battery, Surface Pressure | |
226 | 246 |
227 ; Clock | 247 ; Clock |
228 #DEFINE dm_custom_clock_title_row dm_customview_row+.1 ; 102 | 248 #DEFINE dm_custom_clock_title_row dm_customview_row+.1 ; 102 |
229 #DEFINE dm_custom_clock_row dm_customview_row+.16 ; 117 | 249 #DEFINE dm_custom_clock_row dm_customview_row+.16 ; 117 |
230 #DEFINE dm_custom_clock_column .0 ; 0 | 250 #DEFINE dm_custom_clock_column .0 ; 0 |
231 | 251 |
232 ; Battery | 252 ; Battery |
233 #DEFINE dm_custom_battery_title_row dm_customview_row+.1 ; 102 | 253 #DEFINE dm_custom_battery_title_row dm_customview_row+.1 ; 102 |
234 #DEFINE dm_custom_battery_volt_row dm_customview_row+.16 ; 117 | 254 #DEFINE dm_custom_battery_volt_row dm_customview_row+.15 ; 116 |
235 #DEFINE dm_custom_battery_percent_row dm_custom_ead_row+.23 ; 140 | 255 #DEFINE dm_custom_battery_percent_row dm_custom_ead_row+.21 ; 138 |
236 #DEFINE dm_custom_battery_column .62 ; 62 | 256 #DEFINE dm_custom_battery_column .62 ; 62 |
237 | 257 |
238 ; Surface Pressure | 258 ; Surface Pressure |
239 #DEFINE dm_custom_surfpres_title_row dm_customview_row+.1 ; 102 | 259 #DEFINE dm_custom_surfpres_title_row dm_customview_row+.1 ; 102 |
240 #DEFINE dm_custom_surfpres_row dm_customview_row+.16 ; 117 | 260 #DEFINE dm_custom_surfpres_row dm_customview_row+.16 ; 117 |
241 #DEFINE dm_custom_surfpres_column .95 ; 95 | 261 #DEFINE dm_custom_surfpres_column .95 ; 95 |
242 | 262 |
243 | 263 |
244 ;****** Custom View: ppO2, EAD/ENDS and CNS ******* | 264 ;----------------------------------------------------------------------------- |
265 ; Custom View: ppO2, EAD/ENDS and CNS | |
245 | 266 |
246 ; ppO2 | 267 ; ppO2 |
247 #DEFINE dm_custom_ppo2_title_row dm_customview_row+.1 ; 102 | 268 #DEFINE dm_custom_ppo2_title_row dm_customview_row+.1 ; 102 |
248 #DEFINE dm_custom_ppo2_row dm_customview_row+.18 ; 119 | 269 #DEFINE dm_custom_ppo2_row dm_customview_row+.18 ; 119 |
249 #DEFINE dm_custom_ppo2_column .2 ; 2 | 270 #DEFINE dm_custom_ppo2_column .2 ; 2 |
250 | 271 |
251 ; EAD/END | 272 ; EAD/END |
252 #DEFINE dm_custom_eadend_title_row dm_customview_row+.1 ; 102 | 273 #DEFINE dm_custom_eadend_title_row dm_customview_row+.1 ; 102 |
253 #DEFINE dm_custom_ead_row dm_customview_row+.16 ; 117 | 274 #DEFINE dm_custom_ead_row dm_customview_row+.14 ; 115 |
254 #DEFINE dm_custom_ead_column .50 ; 50 | 275 #DEFINE dm_custom_ead_column .50 ; 50 |
255 #DEFINE dm_custom_end_row dm_custom_ead_row+.23 ; 140 | 276 #DEFINE dm_custom_end_row dm_custom_ead_row+.21 ; 138 |
256 #DEFINE dm_custom_end_column dm_custom_ead_column ; 50 | 277 #DEFINE dm_custom_end_column dm_custom_ead_column ; 50 |
257 | 278 |
258 ; CNS | 279 ; CNS |
259 #DEFINE dm_custom_cns_title_row dm_customview_row+.1 ; 102 | 280 #DEFINE dm_custom_cns_title_row dm_customview_row+.1 ; 102 |
260 #DEFINE dm_custom_cns_row dm_customview_row+.18 ; 119 | 281 #DEFINE dm_custom_cns_row dm_customview_row+.18 ; 119 |
261 #DEFINE dm_custom_cns_column .115 ; 115 | 282 #DEFINE dm_custom_cns_column .115 ; 115 |
262 | 283 |
263 | 284 |
264 ;****** Custom View: tripple CNS ******* | 285 ;----------------------------------------------------------------------------- |
286 ; Custom View: tripple CNS | |
265 | 287 |
266 #DEFINE dm_custom_cns3_title_row dm_customview_row+.1 ; 102 | 288 #DEFINE dm_custom_cns3_title_row dm_customview_row+.1 ; 102 |
267 #DEFINE dm_custom_cns3_row dm_customview_row+.16 ; 117 | 289 #DEFINE dm_custom_cns3_row dm_customview_row+.16 ; 117 |
268 #DEFINE dm_custom_cns3_column1 .8 ; 8 | 290 #DEFINE dm_custom_cns3_column1 .8 ; 8 |
269 #DEFINE dm_custom_cns3_column2 .62 ; 62 | 291 #DEFINE dm_custom_cns3_column2 .62 ; 62 |
270 #DEFINE dm_custom_cns3_column3 .115 ; 115 | 292 #DEFINE dm_custom_cns3_column3 .115 ; 115 |
271 | 293 |
272 | 294 |
273 ;****** Custom View: Ceiling, Tissues, (current GF) | 295 ;----------------------------------------------------------------------------- |
296 ; Custom View: Ceiling, Tissues, (current GF) | |
274 | 297 |
275 ; Ceiling | 298 ; Ceiling |
276 #DEFINE dm_custom_ceiling_title_row dm_customview_row+.1 ; 102 | 299 #DEFINE dm_custom_ceiling_title_row dm_customview_row+.1 ; 102 |
277 #DEFINE dm_custom_ceiling_row dm_customview_row+.18 ; 119 | 300 #DEFINE dm_custom_ceiling_row dm_customview_row+.18 ; 119 |
278 #DEFINE dm_custom_ceiling_column .62 ; 62 | 301 #DEFINE dm_custom_ceiling_column .62 ; 62 |
292 #DEFINE dm_custom_tissue_diagram_bottom dm_custom_tissue_diagram_top+.43; 160 | 315 #DEFINE dm_custom_tissue_diagram_bottom dm_custom_tissue_diagram_top+.43; 160 |
293 #DEFINE dm_custom_tissue_diagram_left .116 ; 116 | 316 #DEFINE dm_custom_tissue_diagram_left .116 ; 116 |
294 #DEFINE dm_custom_tissue_diagram_frame_spacing .8 ; 8 | 317 #DEFINE dm_custom_tissue_diagram_frame_spacing .8 ; 8 |
295 | 318 |
296 | 319 |
297 ;******* Custom View: GF-lo/hi, aGF-lo/hi, current GF value ******* | 320 ;----------------------------------------------------------------------------- |
321 ; Custom View: GF-lo/hi, aGF-lo/hi, current GF Value | |
298 | 322 |
299 ; Title | 323 ; Title |
300 #DEFINE dm_custom_gf_title_row dm_customview_row+.1 ; 102 | 324 #DEFINE dm_custom_gf_title_row dm_customview_row+.1 ; 102 |
301 #DEFINE dm_custom_gf_row dm_customview_row+.18 ; 119 | 325 #DEFINE dm_custom_gf_row dm_customview_row+.18 ; 119 |
302 #DEFINE dm_custom_gf_column1 .0 ; 0 | 326 #DEFINE dm_custom_gf_column1 .0 ; 0 |
303 #DEFINE dm_custom_gf_column2 .65 ; 65 | 327 #DEFINE dm_custom_gf_column2 .65 ; 65 |
304 #DEFINE dm_custom_gf_column3 .95 ; 95 | 328 #DEFINE dm_custom_gf_column3 .95 ; 95 |
305 | 329 |
306 | 330 |
307 ;******* Custom View: Compass ******* | 331 ;----------------------------------------------------------------------------- |
332 ; Custom View: Compass | |
308 | 333 |
309 ; Title | 334 ; Title |
310 #DEFINE dm_custom_compass_mask_row dm_customview_row ; 101 | 335 #DEFINE dm_custom_compass_mask_row dm_customview_row ; 101 |
311 #DEFINE dm_custom_compass_mask_column .65 ; 65 | 336 #DEFINE dm_custom_compass_mask_column .65 ; 65 |
312 | 337 |
313 ; Head and arrows | 338 ; Head and arrows |
314 #DEFINE dm_custom_compass_head_row dm_customview_row+.39 ; 140 | 339 #DEFINE dm_custom_compass_head_row dm_customview_row+.37 ; 138 |
315 #DEFINE dm_custom_compass_head_column .62 ; 62 | 340 #DEFINE dm_custom_compass_head_column .62 ; 62 |
316 #DEFINE dm_custom_compass_ldir_column .5 ; 5 | 341 #DEFINE dm_custom_compass_ldir_column .5 ; 5 |
317 #DEFINE dm_custom_compass_rdir_column .140 ; 140 | 342 #DEFINE dm_custom_compass_rdir_column .138 ; 138 |
318 | 343 |
319 ; Ruler | 344 ; Ruler |
320 #DEFINE dm_custom_compass_graph_row dm_customview_row ; 101 | 345 #DEFINE dm_custom_compass_graph_row dm_customview_row ; 101 |
321 #DEFINE dm_custom_compass_graph_height .33 ; 33 | 346 #DEFINE dm_custom_compass_graph_height .33 ; 33 |
322 #DEFINE dm_custom_compass_tick_height .3 ; 3 | 347 #DEFINE dm_custom_compass_tick_height .3 ; 3 |
326 #DEFINE dm_custom_compass_label_height .24 ; 24 | 351 #DEFINE dm_custom_compass_label_height .24 ; 24 |
327 #DEFINE dm_custom_compass_tick_bot_top dm_custom_compass_graph_row+.30 ; 131 | 352 #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 | 353 #DEFINE dm_custom_compass_tick_bot_bot dm_custom_compass_graph_row+.33 ; 134 |
329 | 354 |
330 | 355 |
331 ;******* Custom View: O2 Sensor Values ******* | 356 ;----------------------------------------------------------------------------- |
357 ; Custom View: O2 Sensor Values | |
332 | 358 |
333 #DEFINE dm_custom_hud_title_row dm_customview_row+.1 ; 102 | 359 #DEFINE dm_custom_hud_title_row dm_customview_row+.1 ; 102 |
334 #DEFINE dm_custom_hud_row dm_customview_row+.16 ; 117 | 360 #DEFINE dm_custom_hud_row dm_customview_row+.16 ; 117 |
335 #DEFINE dm_custom_hud_sensor1_column .6 ; 6 | 361 #DEFINE dm_custom_hud_sensor1_column .6 ; 6 |
336 #DEFINE dm_custom_hud_sensor2_column .62 ; 62 | 362 #DEFINE dm_custom_hud_sensor2_column .62 ; 62 |
337 #DEFINE dm_custom_hud_sensor3_column .118 ; 118 | 363 #DEFINE dm_custom_hud_sensor3_column .118 ; 118 |
338 | 364 |
339 | 365 |
340 ;******* Custom View: Gas Needs ******* | 366 ;----------------------------------------------------------------------------- |
367 ; Custom View: Gas Needs | |
341 | 368 |
342 #DEFINE dm_custom_gas_mask_row dm_customview_row ; 101 | 369 #DEFINE dm_custom_gas_mask_row dm_customview_row ; 101 |
343 #DEFINE dm_custom_gas_row1 dm_customview_row+.14 ; 115 | 370 #DEFINE dm_custom_gas_row1 dm_customview_row+.14 ; 115 |
344 #DEFINE dm_custom_gas_row2 dm_customview_row+.37 ; 138 | 371 #DEFINE dm_custom_gas_row2 dm_customview_row+.37 ; 138 |
345 #DEFINE dm_custom_gas_column_title .29 ; 29 | 372 #DEFINE dm_custom_gas_column_title .20 ; 20 |
346 #DEFINE dm_custom_gas_column1 .5 ; 5 | 373 #DEFINE dm_custom_gas_column1 .5 ; 5 |
347 #DEFINE dm_custom_gas_column2 .85 ; 85 | 374 #DEFINE dm_custom_gas_column2 .85 ; 85 |
348 | 375 |
349 | 376 |
350 ; ******* Custom View: Tank Pressures ******* | 377 ;----------------------------------------------------------------------------- |
378 ; Custom View: Tank Pressures | |
351 | 379 |
352 #DEFINE dm_custom_tankdata_mask_row dm_customview_row+.1 ; 102 | 380 #DEFINE dm_custom_tankdata_mask_row dm_customview_row+.1 ; 102 |
353 #DEFINE dm_custom_tankdata_row dm_customview_row+.16 ; 117 | 381 #DEFINE dm_custom_tankdata_row dm_customview_row+.16 ; 117 |
354 #DEFINE dm_custom_tankdata_pres1_col .2 ; 2 | 382 #DEFINE dm_custom_tankdata_pres1_col .2 ; 2 |
355 #DEFINE dm_custom_tankdata_pres2_col .115 ; 115 | 383 #DEFINE dm_custom_tankdata_pres2_col .115 ; 115 |
356 #DEFINE dm_custom_tankdata_SAC_col .56 ; 56 | 384 #DEFINE dm_custom_tankdata_SAC_col .56 ; 56 |
357 | 385 |
358 | 386 |
359 ;******* Custom View: Sensor Check ******* | 387 ;----------------------------------------------------------------------------- |
388 ; Custom View: Sensor Check | |
360 | 389 |
361 #DEFINE dm_custom_s_check_title_row dm_customview_row+.1 ; 102 | 390 #DEFINE dm_custom_s_check_title_row dm_customview_row+.1 ; 102 |
362 #DEFINE dm_custom_s_check_row dm_customview_row+.18 ; 119 | 391 #DEFINE dm_custom_s_check_row dm_customview_row+.18 ; 119 |
363 #DEFINE dm_custom_s_check_title_column .50 ; 50 | 392 #DEFINE dm_custom_s_check_title_column .50 ; 50 |
364 #DEFINE dm_custom_ppO2_column .115 ; 115 | 393 #DEFINE dm_custom_ppO2_column .115 ; 115 |
365 #DEFINE dm_custom_ppDil_column .2 ; 2 | 394 #DEFINE dm_custom_ppDil_column .2 ; 2 |
366 | 395 |
367 | 396 |
368 ;******* Custom View: pSCR Info ******* | 397 ;----------------------------------------------------------------------------- |
398 ; Custom View: pSCR Info | |
369 | 399 |
370 #DEFINE dm_custom_pscr_title_row dm_customview_row+.1 ; 102 | 400 #DEFINE dm_custom_pscr_title_row dm_customview_row+.1 ; 102 |
371 #DEFINE dm_custom_pscr_row dm_customview_row+.18 ; 119 | 401 #DEFINE dm_custom_pscr_row dm_customview_row+.18 ; 119 |
372 #DEFINE dm_custom_pscr_drop_column .55 ; 55 | 402 #DEFINE dm_custom_pscr_drop_column .55 ; 55 |
373 #DEFINE dm_custom_pscr_ratio_column .105 ; 105 | 403 #DEFINE dm_custom_pscr_ratio_column .105 ; 105 |
374 | 404 |
375 | 405 |
376 ;******* Custom View: cave TTS ******* | 406 ;----------------------------------------------------------------------------- |
407 ; Custom View: cave TTS | |
377 | 408 |
378 #DEFINE dm_custom_cave_title_row dm_customview_row+.1 ; 102 | 409 #DEFINE dm_custom_cave_title_row dm_customview_row+.1 ; 102 |
379 #DEFINE dm_custom_cave_title_column1 .2 ; 2 | 410 #DEFINE dm_custom_cave_title_column1 .2 ; 2 |
380 #DEFINE dm_custom_cave_title_column2 .64 ; 64 | 411 #DEFINE dm_custom_cave_title_column2 .64 ; 64 |
381 #DEFINE dm_custom_cave_title_column3 .118 ; 118 | 412 #DEFINE dm_custom_cave_title_column3 .118 ; 118 |
384 #DEFINE dm_custom_cave_data_column1 .8 ; 8 | 415 #DEFINE dm_custom_cave_data_column1 .8 ; 8 |
385 #DEFINE dm_custom_cave_data_column2 .60 ; 60 | 416 #DEFINE dm_custom_cave_data_column2 .60 ; 60 |
386 #DEFINE dm_custom_cave_data_column3 .114 ; 114 | 417 #DEFINE dm_custom_cave_data_column3 .114 ; 114 |
387 | 418 |
388 | 419 |
389 | 420 ;----------------------------------------------------------------------------- |
390 ; II. end of the custom content row (101-163) | 421 ; End of the Custom Content Row (101-163) |
391 | 422 |
392 ; 1px space between the 2nd and 3rd content rows | 423 ; 1px space between the 2nd and 3rd content rows |
393 #DEFINE dm_sep_2_3_row dm_offset+.150 ; 164 | 424 #DEFINE dm_sep_2_3_row dm_offset+.150 ; 164 |
394 | 425 |
395 | 426 |
427 ;----------------------------------------------------------------------------- | |
396 ; III. The 3rd content row contains temperature, active gas, NDL/TTS time, | 428 ; III. The 3rd content row contains temperature, active gas, NDL/TTS time, |
397 ; simulator menu, active/dil gas, decostop, Apnea surface time and max depth | 429 ; simulator menu, active/dil gas, decostop, Apnea surface time and max depth |
430 ;----------------------------------------------------------------------------- | |
431 | |
398 ; The content row contains 2 columns: | 432 ; The content row contains 2 columns: |
399 ; - temperature, gas names | 433 ; - temperature, gas names |
400 ; - NDL/TTS, DecoStop | 434 ; - NDL/TTS, DecoStop |
401 | 435 |
402 #DEFINE dm_3rdrow_top dm_offset+.151 ; 165 | 436 #DEFINE dm_3rdrow_top dm_offset+.151 ; 165 |
403 #DEFINE dm_3rdrow_bot .239 ; 239 | 437 #DEFINE dm_3rdrow_bot .239 ; 239 |
404 #DEFINE dm_3rdrow_lft .0 ; 0 | 438 #DEFINE dm_3rdrow_lft .0 ; 0 |
405 #DEFINE dm_3rdrow_rgt .159 ; 159 | 439 #DEFINE dm_3rdrow_rgt .159 ; 159 |
406 | 440 |
407 | 441 |
408 ;******* Bottom content / 1st col ******* | 442 ;----------------------------------------------------------------------------- |
443 ; Bottom Content / 1st Column | |
409 | 444 |
410 ; Temperature | 445 ; Temperature |
411 #DEFINE dm_temp_row dm_3rdrow_top-.3 ; 162 | 446 #DEFINE dm_temp_row dm_3rdrow_top-.3 ; 162 |
412 #DEFINE dm_temp_column dm_3rdrow_lft ; 0 | 447 #DEFINE dm_temp_column dm_3rdrow_lft ; 0 |
413 | 448 |
437 #DEFINE dm_sign_row_alt .193 ; 193 | 472 #DEFINE dm_sign_row_alt .193 ; 193 |
438 #DEFINE dm_sign_col_alt .52 ; 52 | 473 #DEFINE dm_sign_col_alt .52 ; 52 |
439 #DEFINE dm_sign_bot_alt dm_sign_row_alt+.38 ; 231 | 474 #DEFINE dm_sign_bot_alt dm_sign_row_alt+.38 ; 231 |
440 #DEFINE dm_sign_rgt_alt dm_sign_col_alt+.22 ; 74 | 475 #DEFINE dm_sign_rgt_alt dm_sign_col_alt+.22 ; 74 |
441 | 476 |
442 ;******* Bottom content / 2nd col ******* | 477 |
478 ;----------------------------------------------------------------------------- | |
479 ; Bottom content / 2nd Column | |
443 | 480 |
444 ; 1st Deco Stop | 481 ; 1st Deco Stop |
445 #DEFINE dm_decostop_row_norm dm_3rdrow_top ; 165 | 482 #DEFINE dm_decostop_row_norm dm_3rdrow_top ; 165 |
446 #DEFINE dm_decostop_col_norm .82 ; 82 | 483 #DEFINE dm_decostop_col_norm .82 ; 82 |
447 #DEFINE dm_decostop_row_alt_depth dm_decostop_row_norm-.1 ; 164 | 484 #DEFINE dm_decostop_row_alt_depth dm_decostop_row_norm-.1 ; 164 |
483 #DEFINE dm_gassep_row dm_sep_2_3_row ; 164 | 520 #DEFINE dm_gassep_row dm_sep_2_3_row ; 164 |
484 #DEFINE dm_gassep_bot .239 ; 239 | 521 #DEFINE dm_gassep_bot .239 ; 239 |
485 #DEFINE dm_gassep_column .78 ; 78 | 522 #DEFINE dm_gassep_column .78 ; 78 |
486 | 523 |
487 | 524 |
488 ;******* Bottom content / Apnea mode ******* | 525 ;----------------------------------------------------------------------------- |
526 ; Bottom Content / Apnea Mode | |
489 | 527 |
490 #DEFINE dm_apnoe_last_max_depth_text_row .192 ; 192 | 528 #DEFINE dm_apnoe_last_max_depth_text_row .192 ; 192 |
491 #DEFINE dm_apnoe_last_max_depth_text_col .20 ; 20 | 529 #DEFINE dm_apnoe_last_max_depth_text_col .20 ; 20 |
492 #DEFINE dm_apnoe_last_max_depth_row .207 ; 207 | 530 #DEFINE dm_apnoe_last_max_depth_row .207 ; 207 |
493 #DEFINE dm_apnoe_last_max_depth_column .15 ; 15 | 531 #DEFINE dm_apnoe_last_max_depth_column .15 ; 15 |
496 #DEFINE dm_apnoe_surface_time_text_col .100 ; 100 | 534 #DEFINE dm_apnoe_surface_time_text_col .100 ; 100 |
497 #DEFINE dm_apnoe_surface_time_row .207 ; 207 | 535 #DEFINE dm_apnoe_surface_time_row .207 ; 207 |
498 #DEFINE dm_apnoe_surface_time_column .80 ; 80 | 536 #DEFINE dm_apnoe_surface_time_column .80 ; 80 |
499 | 537 |
500 | 538 |
501 ;******* Bottom content / Gauge mode ******* | 539 ;----------------------------------------------------------------------------- |
540 ; Bottom content / Gauge mode | |
541 | |
502 #DEFINE dm_gauge_max_depth_text_row .192 | 542 #DEFINE dm_gauge_max_depth_text_row .192 |
503 #DEFINE dm_gauge_max_depth_text_col .25 | 543 #DEFINE dm_gauge_max_depth_text_col .25 |
504 #DEFINE dm_gauge_max_depth_row .207 | 544 #DEFINE dm_gauge_max_depth_row .207 |
505 #DEFINE dm_gauge_max_depth_col .15 | 545 #DEFINE dm_gauge_max_depth_col .15 |
506 | 546 |
508 #DEFINE dm_gauge_avg_depth_text_col .100 | 548 #DEFINE dm_gauge_avg_depth_text_col .100 |
509 #DEFINE dm_gauge_avg_depth_row .207 | 549 #DEFINE dm_gauge_avg_depth_row .207 |
510 #DEFINE dm_gauge_avg_depth_col .85 | 550 #DEFINE dm_gauge_avg_depth_col .85 |
511 | 551 |
512 | 552 |
513 | 553 ;----------------------------------------------------------------------------- |
514 ; IV. The last set of parameters is for the menus displayed in dive mode | 554 ; IV. The last set of parameters is for the menu displayed in dive mode |
555 ;----------------------------------------------------------------------------- | |
515 | 556 |
516 ; Divemode menu | 557 ; Divemode menu |
517 #DEFINE dm_menu_row .164 ; 164 upper row, the frame's top line is the separator | 558 #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 | 559 #DEFINE dm_menu_lower .239 ; 239 lower border |
519 #DEFINE dm_menu_left .0 ; 0 left | 560 #DEFINE dm_menu_left .0 ; 0 left |