Mercurial > public > hwos_code
comparison src/divemode.inc @ 300:5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
author | Janos Kovacs <kovjanos@gmail.com> |
---|---|
date | Sun, 31 May 2015 21:24:16 +0200 |
parents | ad62dff7739a |
children | efb53af0d62a |
comparison
equal
deleted
inserted
replaced
299:6c4800af27ac | 300:5ad479f2a868 |
---|---|
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 extern set_dive_modes |
12 extern diveloop | 12 extern diveloop |
13 extern apnoe_calc_maxdepth | 13 extern apnoe_calc_maxdepth |
14 | 14 |
15 ; Divemode layout: | 15 ; Divemode layout: |
16 ; row=0...239 | 16 ; row=0...239 |
17 ; column=0...159 (x2) | 17 ; column=0...159 (x2) |
18 | 18 |
19 #DEFINE depth_row .14 | 19 ; Divemode has multiple layouts but basicly splits the screen into 3 rows: |
20 #DEFINE depth_column .0 | 20 ; - upper content row: depth, max depth, dive time, etc. |
21 #DEFINE depth_feet_row depth_row | 21 ; - custom content view with selectable views |
22 #DEFINE depth_feet_column .0 | 22 ; - bottom content: temp, gas, ndl, tts, etc. |
23 #DEFINE depth_dm_row depth_row+.25 | 23 |
24 #DEFINE depth_dm_column .40 | 24 ; I. The upper conent row. (0-99) |
25 | 25 ; The top row can be divided 2 areas: |
26 #DEFINE max_depth_row depth_row | 26 ; - header: has the titles (mask) |
27 #DEFINE max_depth_column .64 | 27 ; - content: has the values |
28 #DEFINE max_depth_dm_column .87 | 28 ;******* Upper content / header row ******* |
29 #DEFINE max_depth_dm_row depth_row+.12 | 29 #DEFINE dm_mask_depth_row .0 |
30 #DEFINE max_depth_feet_row max_depth_row | 30 #DEFINE dm_mask_depth_column .12 |
31 #DEFINE max_depth_feet_column .64 | 31 #DEFINE dm_mask_maxdepth_row .0 |
32 | 32 #DEFINE dm_mask_maxdepth_column .62 |
33 #DEFINE divetime_row depth_row | 33 #DEFINE dm_mask_divetime_row .0 |
34 #DEFINE divetime_column .103 ; Mins:Secs | 34 #DEFINE dm_mask_divetime_column .122 |
35 #DEFINE divetime_minsonly_column .100 ; Minutes only | 35 |
36 #DEFINE divetime_secs_column .139 | 36 ; The content row contains 3 columns: |
37 #DEFINE divetime_secs_row depth_row+.12 | 37 ; - depth and ascend rate warning |
38 #DEFINE divetime_apnoe_row depth_row | 38 ; - max depth and warning messages |
39 #DEFINE divetime_apnoe_column .103 | 39 ; - dive time, apnea dive times and warning icon |
40 #DEFINE apnoe_total_divetime_row divetime_apnoe_row+.50 | 40 ; DIVEMODE_OFFSET=position below the title row |
41 #DEFINE apnoe_total_divetime_column divetime_apnoe_column | 41 ;******* Upper content / content row / 1st col ******* |
42 #DEFINE apnoe_total_divetime_secs_row apnoe_total_divetime_row+.12 | 42 ; GLOBAL |
43 #DEFINE apnoe_total_divetime_secs_column divetime_secs_column | 43 #DEFINE dm_offset .14 ; 14 |
44 #DEFINE total_apnoe_text_column .132 | 44 ; Depth |
45 #DEFINE total_apnoe_text_row apnoe_total_divetime_row-.14 | 45 #DEFINE dm_depth_row dm_offset ; TOP - 14 - start position of the detph numbers |
46 | 46 #DEFINE dm_depth_column .0 ; LEFT - 0 |
47 | 47 #DEFINE dm_depth_bot dm_depth_row+.61 ; 75 |
48 #DEFINE divemode_mask_depth_row .0 | 48 #DEFINE dm_depth_rgt dm_depth_column+.61 ; 61 |
49 #DEFINE divemode_mask_depth_column .12 | 49 #DEFINE dm_depth_dm_row dm_depth_row+.25 ; 39 - if metric and d<100, decimeter shown as: ".5" |
50 #DEFINE divemode_mask_maxdepth_row .0 | 50 #DEFINE dm_depth_dm_column dm_depth_column+.40 ; 40 - bottom aligned so it has its own position (2nd content line only) |
51 #DEFINE divemode_mask_maxdepth_column .62 | 51 ; Ascend rate |
52 #DEFINE divemode_mask_divetime_row .0 | 52 #DEFINE dm_velocity_text_row dm_depth_row+.62 ; 76 |
53 #DEFINE divemode_mask_divetime_column .122 | 53 #DEFINE dm_velocity_text_column dm_depth_column ; 0 |
54 | 54 #DEFINE dm_velocity_text_bot dm_velocity_text_row+.23 ; 99 |
55 #DEFINE surface_apnoe_text_row .190 | 55 #DEFINE dm_velocity_text_rgt dm_depth_rgt ; 61 |
56 #DEFINE surface_apnoe_text_column .30 | 56 |
57 #DEFINE surface_time_apnoe_row .204 | 57 ;******* Upper content / content row / 2nd col ******* |
58 #DEFINE surface_time_apnoe_column .15 | 58 ; Max depth |
59 | 59 #DEFINE dm_max_depth_row dm_offset ; 14 |
60 #DEFINE last_max_apnoe_text_row .190 | 60 #DEFINE dm_max_depth_column .64 ; 64 |
61 #DEFINE last_max_apnoe_text_column .100 | 61 #DEFINE dm_max_depth_bot dm_max_depth_row+.34 ; 48 |
62 #DEFINE apnoe_last_max_depth_row .204 | 62 #DEFINE dm_max_depth_rgt dm_max_depth_column+.36 ; 100 |
63 #DEFINE apnoe_last_max_depth_column .100 | 63 #DEFINE dm_max_depth_dm_row dm_max_depth_row+.11 ; 25 |
64 | 64 #DEFINE dm_max_depth_dm_column dm_max_depth_column+.23 ; 87 |
65 #DEFINE dive_temp_row .163 | 65 ; Warning area (combined) |
66 #DEFINE dive_temp_column .2 | 66 #DEFINE dm_warning_row dm_offset+.36 ; 50 |
67 | 67 #DEFINE dm_warning_column .64 ; 64 |
68 #DEFINE dm_warning_bot dm_warning_row+.49 ; 99 | |
69 #DEFINE dm_warning_rgt dm_warning_column+.68 ; 130 | |
70 #DEFINE dm_warning_length .9 ; total string length | |
71 ; Warning row #1 | |
72 #DEFINE dm_warning1_row dm_warning_row ; 36/50 | |
73 #DEFINE dm_warning1_column dm_warning_column ; 64 | |
74 #DEFINE dm_warning1_bot dm_warning1_row+.23 ; 59/73 | |
75 #DEFINE dm_warning1_rgt dm_warning1_column+.68 ; 130 | |
76 ; Warning row #2 | |
77 #DEFINE dm_warning2_row dm_warning_row+.24 ; 60/74 | |
78 #DEFINE dm_warning2_column dm_warning_column ; 64 | |
79 #DEFINE dm_warning2_bot dm_warning2_row+.23 ; 83/97 | |
80 #DEFINE dm_warning2_rgt dm_warning2_column+.68 ; 130 | |
81 | |
82 ;******* Upper content / content row / 3rd col ******* | |
83 ; Dive time | |
84 #DEFINE dm_divetime_row dm_offset ; 14 | |
85 #DEFINE dm_divetime_column .115 ; 115 | |
86 #DEFINE dm_divetime_minsonly_column .113 ; 113 | |
87 #DEFINE dm_divetime_bot dm_divetime_row+.34 ; 48 | |
88 #DEFINE dm_divetime_rgt .159 ; 159 | |
89 #DEFINE dm_divetime_secs_row dm_divetime_row+.11 ; 25 | |
90 #DEFINE dm_divetime_secs_column dm_divetime_column+.24 ; 139 | |
91 ; Warning icon | |
92 #DEFINE dm_warning_icon_row dm_offset+.41 ; 55 | |
93 #DEFINE dm_warning_icon_column .135 ; 135 | |
94 #DEFINE dm_warning_icon_bot dm_warning_icon_row+.38 ; 93 | |
95 #DEFINE dm_warning_icon_rgt dm_warning_icon_column+.21 ; 156 | |
96 ; Apnea dive time | |
97 #DEFINE dm_divetime_apnoe_row dm_offset ; 14 | |
98 #DEFINE dm_divetime_apnoe_column .103 ; 103 | |
99 #DEFINE dm_divetime_apnoe_secs_row dm_divetime_apnoe_row+.11 ; 25 | |
100 #DEFINE dm_divetime_apnoe_secs_column dm_divetime_apnoe_column+.36 ; 139 | |
101 ; Apnea total time | |
102 #DEFINE dm_apnoe_total_divetime_row dm_divetime_apnoe_row+.50 ; 64 | |
103 #DEFINE dm_apnoe_total_divetime_column dm_divetime_apnoe_column ; 103 | |
104 #DEFINE dm_apnoe_total_divetime_secs_row dm_apnoe_total_divetime_row+.11 ; 75 | |
105 #DEFINE dm_apnoe_total_divetime_secs_col dm_divetime_apnoe_column+.36 ; 139 | |
106 #DEFINE dm_total_apnoe_text_row dm_apnoe_total_divetime_row-.11 ; 53 | |
107 #DEFINE dm_total_apnoe_text_column .132 ; 132 | |
108 ; I. End of the upper conent row. (0-99) | |
109 | |
110 | |
111 | |
112 ; 1px space between the 1st and 2nd content rows | |
113 #DEFINE dm_sep_1_2_row dm_offset+.86 ; 100 | |
114 | |
115 | |
116 | |
117 ; II. Custom/selectable content row | |
118 ; The costume view display area is: 101,163,0,159 (t,b,l,r), or 0,101->159,163 | |
119 ; 1. Stopwatch with avarage depth | |
120 ; 2. Decoplan - decompression stops up to 6 stops | |
121 ; 3. Time, EAD/END and tissue saturation (graph) | |
122 ; 4. GF and aGF pairs | |
123 ; 5. Compass | |
124 ; 6. HUD - 3 sensor readings | |
125 ; 7. Gas list | |
126 ; 8. Ceiling (for GF_hi) | |
127 ;******* Custom content / Global ******* | |
128 #DEFINE dm_customview_row dm_offset+.87 ; 101 | |
129 #DEFINE dm_customview_column .0 ; 0 | |
130 #DEFINE dm_customview_bot dm_customview_row+.62 ; 163 | |
131 #DEFINE dm_customview_rgt .159 ; 159 | |
132 | |
133 ;******* Custom content / #1 - Avg depth, stopwatch and avg depth ******* | |
134 ; Title | |
135 #DEFINE dm_custom_avr_stop_title_row dm_customview_row+.1 ; 102 | |
136 #DEFINE dm_custom_avr_stop_title_column1 .2 ; 2 | |
137 #DEFINE dm_custom_avr_stop_title_column2 .57 ; 57 | |
138 #DEFINE dm_custom_avr_stop_title_column3 .110 ; 110 | |
139 ; Values | |
140 #DEFINE dm_custom_avr_stop_row dm_customview_row+.16 ; 117 | |
141 #DEFINE dm_custom_avr_stop_column1 .0 ; 0 | |
142 #DEFINE dm_custom_avr_stop_column2 .54 ; 54 | |
143 #DEFINE dm_custom_avr_stop_column3 .118 ; 118 | |
144 | |
145 ;******* Custom content / #2 - Decompressions stops ******* | |
146 ; Title | |
147 #DEFINE dm_custom_decoplan_title_row dm_customview_row ; 101 | |
148 #DEFINE dm_custom_decoplan_title_column .65 ; 65 | |
149 ; 1st col | |
150 #DEFINE dm_cust_dstop_2nd_stop_row dm_customview_row+.15 ; 116 | |
151 #DEFINE dm_cust_dstop_2nd_stop_column .0 ; 0 | |
152 #DEFINE dm_cust_dstop_3rd_stop_row dm_customview_row+.39 ; 140 | |
153 #DEFINE dm_cust_dstop_3rd_stop_column dm_cust_dstop_2nd_stop_column ; 0 | |
154 ; 2nd col | |
155 #DEFINE dm_cust_dstop_4th_stop_row dm_cust_dstop_2nd_stop_row ; 116 | |
156 #DEFINE dm_cust_dstop_4th_stop_column .56 ; 56 | |
157 #DEFINE dm_cust_dstop_5th_stop_row dm_cust_dstop_3rd_stop_row ; 140 | |
158 #DEFINE dm_cust_dstop_5th_stop_column dm_cust_dstop_4th_stop_column ; 56 | |
159 ; 3rd col | |
160 #DEFINE dm_cust_dstop_6th_stop_row dm_cust_dstop_2nd_stop_row ; 116 | |
161 #DEFINE dm_cust_dstop_6th_stop_column .112 ; 112 | |
162 #DEFINE dm_cust_dstop_7th_stop_row dm_cust_dstop_3rd_stop_row ; 140 | |
163 #DEFINE dm_cust_dstop_7th_stop_column dm_cust_dstop_6th_stop_column ; 112 | |
164 | |
165 ;******* Custom content / #3 - Time, EAD/END and tissue saturation ******* | |
166 ; Clock | |
167 #DEFINE dm_custom_clock_title_row dm_customview_row+.1 ; 102 | |
168 #DEFINE dm_custom_clock_row dm_customview_row+.16 ; 117 | |
169 #DEFINE dm_custom_clock_column .0 ; 0 | |
170 #DEFINE dm_custom_endtime_row dm_custom_clock_row+.23 ; 140 - not used | |
171 #DEFINE dm_custom_endtime_column dm_custom_clock_column ; 0 - not used | |
172 ; EAD/AND | |
173 #DEFINE dm_custom_eadend_title_row dm_customview_row+.1 ; 102 | |
174 #DEFINE dm_custom_ead_row dm_customview_row+.16 ; 117 | |
175 #DEFINE dm_custom_ead_column .46 ; 46 | |
176 #DEFINE dm_custom_end_row dm_custom_ead_row+.23 ; 140 | |
177 #DEFINE dm_custom_end_column dm_custom_ead_column ; 46 | |
178 ; Tissue title | |
179 #DEFINE dm_custom_tissue_title_row dm_customview_row+.1 ; 102 | |
180 #DEFINE dm_custom_tissue_title_column .120 ; 120 | |
181 ; N2 / He values | |
182 #DEFINE dm_custom_tissue_N2_row dm_custom_ead_row+.5 ; 122 | |
183 #DEFINE dm_custom_tissue_N2_column .105 ; 105 | |
184 #DEFINE dm_custom_tissue_He_row dm_custom_end_row+.5 ; 145 | |
185 #DEFINE dm_custom_tissue_He_column dm_custom_tissue_N2_column ; 105 | |
186 ; Tissue diagram | |
187 #DEFINE dm_custom_tissue_diagram_top dm_customview_row+.16 ; 117 | |
188 #DEFINE dm_custom_tissue_diagram_bottom dm_custom_tissue_diagram_top+.43 ; 160 | |
189 #DEFINE dm_custom_tissue_diagram_left .116 ; 116 | |
190 #DEFINE dm_custom_tissue_diagram_frame_spacing .8 ; 8 | |
191 | |
192 ;******* Custom content / #4 - GF-lo/hi, aGF-lo/hi, current GF value ******* | |
193 ; Title | |
194 #DEFINE dm_custom_gf_title_row dm_customview_row+.1 ; 102 | |
195 #DEFINE dm_custom_gf_title_col1 .8 ; 8 | |
196 #DEFINE dm_custom_gf_title_col2 .62 ; 62 | |
197 #DEFINE dm_custom_gf_title_col3 .115 ; 115 | |
198 ; GF | |
199 #DEFINE dm_custom_gf_row dm_customview_row+.18 ; 119 | |
200 #DEFINE dm_custom_gf_column .0 ; 0 | |
201 ; aGF | |
202 #DEFINE dm_custom_agf_row dm_custom_gf_row ; 119 | |
203 #DEFINE dm_custom_agf_column .60 ; 60 | |
204 ; Current GF | |
205 #DEFINE dm_custom_currentgf_row dm_custom_gf_row ; 119 | |
206 #DEFINE dm_custom_currentgf_column .118 ; 118 | |
207 | |
208 ;******* Custom content / #5 - Compass ******* | |
209 ; Title | |
210 #DEFINE dm_custom_compass_mask_row dm_customview_row ; 101 | |
211 #DEFINE dm_custom_compass_mask_column .65 ; 65 | |
212 ; Head and arrows | |
213 #DEFINE dm_custom_compass_head_row dm_customview_row+.39 ; 140 | |
214 #DEFINE dm_custom_compass_head_column .62 ; 62 | |
215 #DEFINE dm_custom_compass_ldir_column .5 ; 5 | |
216 #DEFINE dm_custom_compass_rdir_column .140 ; 140 | |
217 ; Ruler | |
218 #DEFINE dm_custom_compass_graph_row dm_customview_row ; 101 | |
219 #DEFINE dm_custom_compass_graph_height .33 ; 33 | |
220 #DEFINE dm_custom_compass_tick_height .3 ; 3 | |
221 #DEFINE dm_custom_compass_tick_top_top dm_custom_compass_graph_row+.1 ; 102 | |
222 #DEFINE dm_custom_compass_tick_top_bot dm_custom_compass_graph_row+.4 ; 105 | |
223 #DEFINE dm_custom_compass_label_row dm_custom_compass_graph_row+.6 ; 107 | |
224 #DEFINE dm_custom_compass_label_height .24 ; 24 | |
225 #DEFINE dm_custom_compass_tick_bot_top dm_custom_compass_graph_row+.30 ; 131 | |
226 #DEFINE dm_custom_compass_tick_bot_bot dm_custom_compass_graph_row+.33 ; 134 | |
227 | |
228 ;******* Custom content / #6 - HUD / O2 sensor values ******* | |
229 #DEFINE dm_custom_hud_row dm_customview_row+.1 ; 102 | |
230 #DEFINE dm_custom_hud_column1 .10 ; 10 | |
231 #DEFINE dm_custom_hud_column2 .65 ; 65 | |
232 #DEFINE dm_custom_hud_column3 .120 ; 120 | |
233 #DEFINE dm_custom_hud_data_row dm_customview_row+.16 ; 117 | |
234 #DEFINE dm_custom_hud_sensor1_column .6 ; 6 | |
235 #DEFINE dm_custom_hud_sensor2_column .62 ; 62 | |
236 #DEFINE dm_custom_hud_sensor3_column .118 ; 118 | |
237 | |
238 ;******* Custom content / #7 - Gas list ******* | |
239 ; Title | |
240 #DEFINE dm_custom_dyn_gas_mask_row dm_customview_row ; 101 | |
241 #DEFINE dm_custom_dyn_gas_mask_column .59 ; 59 | |
242 ; col #1 | |
243 #DEFINE dm_custom_dyn_gas_row1 dm_customview_row+.16 ; 117 | |
244 #DEFINE dm_custom_dyn_gas_column1 .0 ; 0 | |
245 ; col #2 | |
246 #DEFINE dm_custom_dyn_gas_row2 dm_customview_row+.39 ; 140 | |
247 #DEFINE dm_custom_dyn_gas_column2 .80 ; 80 | |
248 | |
249 ;******* Custom content / #8 - Ceiling value for GF_hi ******* | |
250 ; Title | |
251 #DEFINE dm_custom_ceiling_text_row dm_customview_row+.1 ; 102 | |
252 #DEFINE dm_custom_ceiling_text_column .66 ; 66 | |
253 ; Value | |
254 #DEFINE dm_custom_ceiling_value_row dm_customview_row+.18 ; 119 | |
255 #DEFINE dm_custom_ceiling_value_column .64 ; 64 | |
256 ; II. End of the custom conent row. (101-163) | |
257 | |
258 | |
259 | |
260 ; 1px space between the 2nd and 3rd content rows | |
261 #DEFINE dm_sep_2_3_row dm_offset+.150 ; 164 | |
262 | |
263 | |
264 | |
265 ; III. The 3rd content row contains temperature, active gas, NDL/TTS time, | |
266 ; simulator menu, active/dil gas, decostop, Apnea surface time and max depth | |
267 ; The content row contains 2 columns: | |
268 ; - temperature, gas names | |
269 ; - NDL/TTS, DecoStop | |
270 #DEFINE dm_3rdrow_top dm_offset+.151 ; 165 | |
271 #DEFINE dm_3rdrow_bot .239 ; 239 | |
272 #DEFINE dm_3rdrow_lft .0 ; 0 | |
273 #DEFINE dm_3rdrow_rgt .159 ; 159 | |
274 | |
275 ;******* Bottom content / 1st col ******* | |
276 ; Temperature | |
277 #DEFINE dm_temp_row dm_3rdrow_top ; 165 | |
278 #DEFINE dm_temp_column .0 ; 0 | |
279 ; Simulation text | |
280 #DEFINE dm_simtext_row dm_3rdrow_top ; 165 | |
281 #DEFINE dm_simtext_column .30 ; 30 | |
282 ; Diluent gas | |
283 #DEFINE dm_active_dil_row dm_3rdrow_top+.24 ; 189 | |
284 #DEFINE dm_active_dil_column .0 ; 0 | |
285 ; active gas for OC, blinking better gas, setpoint or bailout for CCR | |
286 #DEFINE dm_active_gas_row .210 ; 210 | |
287 #DEFINE dm_active_gas_column .0 ; 0 | |
288 | |
289 ;******* Bottom content / 2nd col ******* | |
290 ; Next deco stop for TTS | |
291 #DEFINE dm_decostop_1st_stop_row dm_3rdrow_top ; 165 | |
292 #DEFINE dm_decostop_1st_stop_column .82 ; 82 | |
293 ; Safety Stop | |
294 #DEFINE dm_safetystop_row dm_3rdrow_top ; 165 (pre: 171) | |
295 #DEFINE dm_safetystop_column .118 ; 118 | |
296 #DEFINE dm_safetystop_bot dm_safetystop_row+.31 ; 196 | |
297 #DEFINE dm_safetystop_text_row dm_safetystop_row+.1 ; 166 (pre: 175) | |
298 #DEFINE dm_safetystop_text_column .80 ; 80 - for the 4char "Stop"!!! | |
68 ; TTS | 299 ; TTS |
69 #DEFINE tts_text_row .211 | 300 #DEFINE dm_tts_value_row dm_3rdrow_top+.32; ; 197 (pre: 207) |
70 #DEFINE tts_text_column .85 | 301 #DEFINE dm_tts_value_column .118 ; 118 |
71 #DEFINE tts_value_row .207 | 302 #DEFINE dm_tts_text_row dm_tts_value_row+.5 ; 202 (pre: 211) |
72 #DEFINE tts_value_column .118 | 303 #DEFINE dm_tts_text_column .85 ; 85 |
73 | 304 ; NDL - the same position as TTS |
74 #DEFINE ndl_text_row tts_text_row | 305 #DEFINE dm_ndl_value_row dm_tts_value_row ; 197 |
75 #DEFINE ndl_text_column tts_text_column | 306 #DEFINE dm_ndl_value_column dm_tts_value_column ; 118 |
76 #DEFINE ndl_value_row tts_value_row | 307 #DEFINE dm_ndl_text_row dm_tts_text_row ; 202 |
77 #DEFINE ndl_value_column tts_value_column | 308 #DEFINE dm_ndl_text_column dm_tts_text_column ; 85 |
78 | 309 ; FTTS (only modded screen) |
79 #DEFINE active_gas_row .210 | 310 #DEFINE dm_ftts_value_row dm_3rdrow_top+.64 ; 215 |
80 #DEFINE active_gas_column .1 | 311 #DEFINE dm_ftts_value_column .97 ; 97 |
81 #DEFINE active_dil_row .186 | 312 |
82 #DEFINE active_dil_column .1 | 313 ;******* Bottom content / Apnea mode *******; |
83 | 314 #DEFINE dm_apnoe_surface_time_text_row .190 ; 190 |
84 ; Warnings | 315 #DEFINE dm_apnoe_surface_time_text_col .30 ; 30 |
85 #DEFINE warning_icon_row .55 | 316 #DEFINE dm_apnoe_surface_time_row .204 ; 204 |
86 #DEFINE warning_icon_column .135 | 317 #DEFINE dm_apnoe_surface_time_column .15 ; 15 |
87 #DEFINE warning1_row .50 | 318 #DEFINE dm_apnoe_last_max_depth_text_row .190 ; 190 |
88 #DEFINE warning1_column .70 | 319 #DEFINE dm_apnoe_last_max_depth_text_col .100 ; 100 |
89 #DEFINE warning2_row .74 | 320 #DEFINE dm_apnoe_last_max_depth_row .204 ; 204 |
90 #DEFINE warning2_column warning1_column | 321 #DEFINE dm_apnoe_last_max_depth_column .100 ; 100 |
91 #DEFINE warning_length .9 ; total string length | 322 |
92 | 323 |
93 #DEFINE velocity_text_row .76 | 324 |
94 #DEFINE velocity_text_column .0 | 325 ; IV. The last set of parameters are for the menus displayed in dive mode |
95 | |
96 #DEFINE divemode_customview_row .101 ; Upper border | |
97 #DEFINE divemode_customview_column .0 | |
98 | |
99 #DEFINE dive_custom_hud_row divemode_customview_row+.1 | |
100 #DEFINE dive_custom_hud_column1 .10 | |
101 #DEFINE dive_custom_hud_column2 .65 | |
102 #DEFINE dive_custom_hud_column3 .120 | |
103 #DEFINE dive_hud_data_row divemode_customview_row+.16 | |
104 #DEFINE dive_hud_sensor1_column .6 | |
105 #DEFINE dive_hud_sensor2_column .62 | |
106 #DEFINE dive_hud_sensor3_column .118 | |
107 | |
108 ; Customview Ceiling | |
109 #DEFINE dive_ceiling_text_row divemode_customview_row+.1 | |
110 #DEFINE dive_ceiling_text_column .66 | |
111 #DEFINE dive_ceiling_value_row divemode_customview_row+.18 | |
112 #DEFINE dive_ceiling_value_column .64 | |
113 | |
114 ; Customview GF | |
115 #DEFINE dive_gf_text_row divemode_customview_row+.1 | |
116 #DEFINE dive_gf_column1 .8 | |
117 #DEFINE dive_gf_column2 .62 | |
118 #DEFINE dive_gf_column3 .115 | |
119 #DEFINE dive_gf_row divemode_customview_row+.18 | |
120 #DEFINE dive_gf_column .0 | |
121 #DEFINE dive_agf_row dive_gf_row | |
122 #DEFINE dive_agf_column .60 | |
123 #DEFINE dive_currentgf_row dive_gf_row | |
124 #DEFINE dive_currentgf_column .118 | |
125 | |
126 ; Customview Dynamic Gaslist | |
127 #DEFINE dive_custom_dyn_mask_column .59 | |
128 #DEFINE dive_custom_dyn_mask_row decoplan_title_row | |
129 #DEFINE dive_custom_dyn_mask_row1 dive_hud_data_row | |
130 #DEFINE dive_custom_dyn_mask_column1 .0 | |
131 #DEFINE dive_custom_dyn_mask_row2 dive_hud_data_row+.23 | |
132 #DEFINE dive_custom_dyn_mask_column2 .80 | |
133 | |
134 ; Customview clock/date, END/EAD and Tissues | |
135 #DEFINE dive_clock_row dive_hud_data_row | |
136 #DEFINE dive_clock_column .0 | |
137 #DEFINE dive_endtime_row dive_clock_row+.23 | |
138 #DEFINE dive_endtime_column dive_clock_column | |
139 #DEFINE dive_ead_row dive_hud_data_row | |
140 #DEFINE dive_ead_column .46 | |
141 #DEFINE dive_end_row dive_ead_row+.23 | |
142 #DEFINE dive_end_column dive_ead_column | |
143 | |
144 #DEFINE dive_tissue_N2_row dive_ead_row+.5 | |
145 #DEFINE dive_tissue_N2_column .105 | |
146 #DEFINE dive_tissue_He_row dive_end_row+.5 | |
147 #DEFINE dive_tissue_He_column dive_tissue_N2_column | |
148 #DEFINE tissue_diagram_top divemode_customview_row+.16 | |
149 #DEFINE tissue_diagram_bottom .160 | |
150 #DEFINE tissue_diagram_left .116 | |
151 #DEFINE tissue_diagram_frame_spacing .8 | |
152 | |
153 #DEFINE dive_custom_avr_stop_row dive_custom_hud_row | |
154 #DEFINE dive_custom_avr_stop_column1 .2 | |
155 #DEFINE dive_custom_avr_stop_column2 .57 | |
156 #DEFINE dive_custom_avr_stop_column3 .110 | |
157 #DEFINE dive_avr_stop_row dive_hud_data_row | |
158 #DEFINE dive_avr_stop_column1 .0 | |
159 #DEFINE dive_avr_stop_column2 .54 | |
160 #DEFINE dive_avr_stop_column3 .118 | |
161 | |
162 #DEFINE decostop_1st_stop_row .171 ; In medium font... | |
163 #DEFINE decostop_1st_stop_column .82 | |
164 #DEFINE safetystop_row .171 ; In medium font... | |
165 #DEFINE safetystop_column .118 | |
166 | |
167 #DEFINE safetystop_text_row .175 | |
168 #DEFINE safetystop_text_column .70 | |
169 | |
170 #DEFINE decoplan_title_row .101 | |
171 #DEFINE decoplan_title_column .65 | |
172 | |
173 #DEFINE decostop_2nd_stop_row divemode_customview_row+.15 | |
174 #DEFINE decostop_2nd_stop_column .0 | |
175 #DEFINE decostop_3rd_stop_row divemode_customview_row+.39 | |
176 #DEFINE decostop_3rd_stop_column decostop_2nd_stop_column | |
177 #DEFINE decostop_4th_stop_row decostop_2nd_stop_row | |
178 #DEFINE decostop_4th_stop_column .56 | |
179 #DEFINE decostop_5th_stop_row decostop_3rd_stop_row | |
180 #DEFINE decostop_5th_stop_column decostop_4th_stop_column | |
181 #DEFINE decostop_6th_stop_row decostop_2nd_stop_row | |
182 #DEFINE decostop_6th_stop_column .112 | |
183 #DEFINE decostop_7th_stop_row decostop_3rd_stop_row | |
184 #DEFINE decostop_7th_stop_column decostop_6th_stop_column | |
185 | |
186 #DEFINE divemode_simtext_row .164 | |
187 #DEFINE divemode_simtext_column .32 | |
188 | |
189 ; Divemode menu | 326 ; Divemode menu |
190 #DEFINE divemode_menu_row .164 ; Upper row | 327 #DEFINE dm_menu_row .164 ; 164 Upper row -- the frame's top line is the separator |
191 #DEFINE divemode_menu_lower .239 ; Lower border | 328 #DEFINE dm_menu_lower .239 ; 239 Lower border |
192 #DEFINE divemode_menu_left .0 ; Left | 329 #DEFINE dm_menu_left .0 ; 0 Left |
193 #DEFINE divemode_menu_right .159 ; Right | 330 #DEFINE dm_menu_right .159 ; 159 Right |
194 | 331 |
195 #DEFINE divemode_menu_item1_row .165 | 332 #DEFINE dm_menu_item1_row dm_menu_row+.1 ; 165 |
196 #DEFINE divemode_menu_item1_column .9 | 333 #DEFINE dm_menu_item1_column .9 ; 9 |
197 #DEFINE divemode_menu_item2_row divemode_menu_item1_row+.24 | 334 #DEFINE dm_menu_item2_row dm_menu_item1_row+.24 ; 189 |
198 #DEFINE divemode_menu_item2_column divemode_menu_item1_column | 335 #DEFINE dm_menu_item2_column dm_menu_item1_column ; 9 |
199 #DEFINE divemode_menu_item3_row divemode_menu_item2_row+.24 | 336 #DEFINE dm_menu_item3_row dm_menu_item2_row+.24 ; 213 |
200 #DEFINE divemode_menu_item3_column divemode_menu_item1_column | 337 #DEFINE dm_menu_item3_column dm_menu_item1_column ; 9 |
201 #DEFINE divemode_menu_item4_row divemode_menu_item1_row | 338 |
202 #DEFINE divemode_menu_item4_column .89 | 339 #DEFINE dm_menu_item4_row dm_menu_row+.1 ; 165 |
203 #DEFINE divemode_menu_item5_row divemode_menu_item4_row+.24 | 340 #DEFINE dm_menu_item4_column .89 ; 89 |
204 #DEFINE divemode_menu_item5_column divemode_menu_item4_column | 341 #DEFINE dm_menu_item5_row dm_menu_item4_row+.24 ; 189 |
205 #DEFINE divemode_menu_item6_row divemode_menu_item5_row+.24 | 342 #DEFINE dm_menu_item5_column dm_menu_item4_column ; 89 |
206 #DEFINE divemode_menu_item6_column divemode_menu_item4_column | 343 #DEFINE dm_menu_item6_row dm_menu_item5_row+.24 ; 213 |
207 | 344 #DEFINE dm_menu_item6_column dm_menu_item4_column ; 89 |
208 #DEFINE dive_compass_mask_row decoplan_title_row | 345 |
209 #DEFINE dive_compass_mask_column decoplan_title_column | |
210 #DEFINE dive_compass_head_column .62 | |
211 #DEFINE dive_compass_head_row divemode_customview_row+.39 | |
212 #DEFINE dive_compass_ldir_column .5 | |
213 #DEFINE dive_compass_rdir_column .140 | |
214 | |
215 #DEFINE dive_compass_graph_row .101 | |
216 #DEFINE dive_compass_graph_height .33 | |
217 | |
218 #DEFINE dive_compass_tick_height .3 | |
219 #DEFINE dive_compass_tick_top_top .102 | |
220 #DEFINE dive_compass_tick_top_bot .105 | |
221 #DEFINE dive_compass_label_row .107 | |
222 #DEFINE dive_compass_label_height .24 | |
223 #DEFINE dive_compass_tick_bot_top .131 | |
224 #DEFINE dive_compass_tick_bot_bot .134 | |
225 |