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