comparison src/divemode.inc @ 582:b455b31ce022

work on 2.97 stable
author heinrichsweikamp
date Mon, 26 Feb 2018 16:40:28 +0100
parents b7eb98dbd800
children ca4556fb60b9
comparison
equal deleted inserted replaced
581:f5de1ff88814 582:b455b31ce022
1 ;============================================================================= 1 ;=============================================================================
2 ; 2 ;
3 ; File divemode.inc REFACTORED VERSION V2.91 3 ; File divemode.inc REFACTORED VERSION V2.97
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 extern calc_deko_divemode_sensor 14 extern calc_deko_divemode_sensor
15 15
16 16
17 ; Divemode layout: 17 ; Divemode layout:
18 ; row=0...239 18 ; row=0...239
19 ; column=0...159 (x2) 19 ; column=0...159 (x2)
26 ; I. The upper content row. (0-99) 26 ; I. The upper content row. (0-99)
27 ; The top row can be divided 2 areas: 27 ; The top row can be divided 2 areas:
28 ; - header: has the titles (mask) 28 ; - header: has the titles (mask)
29 ; - content: has the values 29 ; - content: has the values
30 ;******* Upper content / header row ******* 30 ;******* Upper content / header row *******
31 #DEFINE dm_mask_depth_row .0 31 #DEFINE dm_mask_depth_row .0
32 #DEFINE dm_mask_depth_column .12 32 #DEFINE dm_mask_depth_column .12
33 #DEFINE dm_mask_maxdepth_row .0 33 #DEFINE dm_mask_maxdepth_row .0
34 #DEFINE dm_mask_maxdepth_column .73 34 #DEFINE dm_mask_maxdepth_column .73
35 #DEFINE dm_mask_maxdepth_column_nvsi .63 35 #DEFINE dm_mask_maxdepth_column_nvsi .63
36 #DEFINE dm_mask_divetime_row .0 36 #DEFINE dm_mask_divetime_row .0
37 #DEFINE dm_mask_divetime_column .122 37 #DEFINE dm_mask_divetime_column .122
38 38
39 ; The content row contains 3 columns: 39 ; The content row contains 3 columns:
40 ; - depth and ascend rate warning 40 ; - depth and ascend rate warning
41 ; - max depth and warning messages 41 ; - max depth and warning messages
42 ; - dive time, apnea dive times and warning icon 42 ; - dive time, apnea dive times and warning icon
43 ; DIVEMODE_OFFSET=position below the title row 43 ; DIVEMODE_OFFSET=position below the title row
44 ;******* Upper content / content row / 1st col ******* 44 ;******* Upper content / content row / 1st col *******
45 ; GLOBAL 45 ; GLOBAL
46 #DEFINE dm_offset .14 ; 14 46 #DEFINE dm_offset .14 ; 14
47 ; Depth 47 ; Depth
48 #DEFINE dm_depth_row dm_offset ; TOP - 14 - start position of the detph numbers 48 #DEFINE dm_depth_row dm_offset ; TOP - 14 - start position of the detph numbers
49 #DEFINE dm_depth_column .0 ; LEFT - 0 49 #DEFINE dm_depth_column .0 ; LEFT - 0
50 #DEFINE dm_depth_bot dm_depth_row+.61 ; 75 50 #DEFINE dm_depth_bot dm_depth_row+.61 ; 75
51 #DEFINE dm_depth_rgt dm_depth_column+.59 ; 59 51 #DEFINE dm_depth_rgt dm_depth_column+.59 ; 59
52 #DEFINE dm_depth_dm_row dm_depth_row+.25 ; 39 - if metric and d<100, decimeter shown as: ".5" 52 #DEFINE dm_depth_dm_row dm_depth_row+.25 ; 39 - if metric and d<100, decimeter shown as: ".5"
53 #DEFINE dm_depth_dm_column dm_depth_column+.40 ; 40 - bottom aligned so it has its own position (2nd content line only) 53 #DEFINE dm_depth_dm_column dm_depth_column+.40 ; 40 - bottom aligned so it has its own position (2nd content line only)
54 ; Ascend rate 54 ; Ascend rate
55 #DEFINE dm_velocity_text_row dm_depth_row+.62 ; 76 55 #DEFINE dm_velocity_text_row dm_depth_row+.62 ; 76
56 #DEFINE dm_velocity_text_column dm_depth_column ; 0 56 #DEFINE dm_velocity_text_column dm_depth_column ; 0
57 #DEFINE dm_velocity_text_bot dm_velocity_text_row+.23 ; 99 57 #DEFINE dm_velocity_text_bot dm_velocity_text_row+.23 ; 99
58 #DEFINE dm_velocity_text_rgt dm_depth_rgt ; 61 58 #DEFINE dm_velocity_text_rgt dm_depth_rgt ; 61
59 ; Ascend/Descend bar 59 ; Ascend/Descend bar
60 #DEFINE dm_velobar_top dm_offset ; 14 60 #DEFINE dm_velobar_top dm_offset ; 14
61 #DEFINE dm_velobar_lft dm_depth_rgt+.1 ; 62 61 #DEFINE dm_velobar_lft dm_depth_rgt+.1 ; 62
62 #DEFINE dm_velobar_bot dm_offset+.70 ; 84 62 #DEFINE dm_velobar_bot dm_offset+.70 ; 84
63 #DEFINE dm_velobar_rgt .73 ; 73 63 #DEFINE dm_velobar_rgt .73 ; 73
64 #DEFINE dm_velobar_width .12 64 #DEFINE dm_velobar_width .12
65 65
66 ;******* Upper content / content row / 2nd col ******* 66 ;******* Upper content / content row / 2nd col *******
67 #DEFINE dm_upcnt_2ndcol .74 ; 74 67 #DEFINE dm_upcnt_2ndcol .74 ; 74
68 #DEFINE dm_upcnt_2ndcol_nvsi .64 ; 64 68 #DEFINE dm_upcnt_2ndcol_nvsi .64 ; 64
69 ; Max depth 69 ; Max depth
70 #DEFINE dm_max_depth_row dm_offset ; 14 70 #DEFINE dm_max_depth_row dm_offset ; 14
71 #DEFINE dm_max_depth_column dm_upcnt_2ndcol ; 74 71 #DEFINE dm_max_depth_column dm_upcnt_2ndcol ; 74
72 #DEFINE dm_max_depth_column_nvsi dm_upcnt_2ndcol_nvsi ; 64 72 #DEFINE dm_max_depth_column_nvsi dm_upcnt_2ndcol_nvsi ; 64
73 #DEFINE dm_max_depth_bot dm_max_depth_row+.34 ; 48 73 #DEFINE dm_max_depth_bot dm_max_depth_row+.34 ; 48
74 #DEFINE dm_max_depth_rgt dm_max_depth_column+.36 ; 100 74 #DEFINE dm_max_depth_rgt dm_max_depth_column+.36 ; 100
75 #DEFINE dm_max_depth_dm_row dm_max_depth_row+.11 ; 25 75 #DEFINE dm_max_depth_dm_row dm_max_depth_row+.11 ; 25
76 #DEFINE dm_max_depth_dm_column dm_max_depth_column+.23 ; 87 76 #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 77 #DEFINE dm_max_depth_dm_column_nvsi dm_max_depth_column_nvsi+.23 ; 77
78 #DEFINE dm_max_alt_column .0 78 #DEFINE dm_max_alt_column .0 ; 0
79 #DEFINE dm_max_alt_row .170 79 #DEFINE dm_max_alt_row .170 ; 170
80 #DEFINE dm_max_dm_alt_column dm_max_alt_column+.60 80 #DEFINE dm_max_dm_alt_column dm_max_alt_column+.60 ; 60
81 ; Warning area (combined) 81 ; Warning area (combined)
82 #DEFINE dm_warning_row dm_offset+.36 ; 50 82 #DEFINE dm_warning_row dm_offset+.36 ; 50
83 #DEFINE dm_warning_column dm_upcnt_2ndcol ; 74 83 #DEFINE dm_warning_column dm_upcnt_2ndcol ; 74
84 #DEFINE dm_warning_bot dm_warning_row+.49 ; 99 84 #DEFINE dm_warning_bot dm_warning_row+.49 ; 99
85 #DEFINE dm_warning_rgt dm_warning_column+.62 ; 136 85 #DEFINE dm_warning_rgt dm_warning_column+.62 ; 136
86 #DEFINE dm_warning_length .9 ; total string length 86 #DEFINE dm_warning_length .9 ; total string length
87 ; Warning row #1 87 ; Warning row #1
88 #DEFINE dm_warning1_row dm_warning_row ; 36/50 88 #DEFINE dm_warning1_row dm_warning_row ; 36/50
89 #DEFINE dm_warning1_column dm_warning_column ; 64 89 #DEFINE dm_warning1_column dm_warning_column ; 64
90 #DEFINE dm_warning1_bot dm_warning1_row+.23 ; 59/73 90 #DEFINE dm_warning1_bot dm_warning1_row+.23 ; 59/73
91 #DEFINE dm_warning1_rgt dm_warning_rgt ; 136 91 #DEFINE dm_warning1_rgt dm_warning_rgt ; 136
92 ; Warning row #2 92 ; Warning row #2
93 #DEFINE dm_warning2_row dm_warning_row+.24 ; 60/74 93 #DEFINE dm_warning2_row dm_warning_row+.24 ; 60/74
94 #DEFINE dm_warning2_column dm_warning_column ; 64 94 #DEFINE dm_warning2_column dm_warning_column ; 64
95 #DEFINE dm_warning2_bot dm_warning2_row+.23 ; 83/97 95 #DEFINE dm_warning2_bot dm_warning2_row+.23 ; 83/97
96 #DEFINE dm_warning2_rgt dm_warning_rgt ; 136 96 #DEFINE dm_warning2_rgt dm_warning_rgt ; 136
97 97
98 ;******* Upper content / content row / 3rd col ******* 98 ;******* Upper content / content row / 3rd col *******
99 ; Dive time 99 ; Dive time
100 #DEFINE dm_divetime_row dm_offset ; 14 100 #DEFINE dm_divetime_row dm_offset ; 14
101 #DEFINE dm_divetime_column .115 ; 115 101 #DEFINE dm_divetime_column .115 ; 115
102 #DEFINE dm_divetime_minsonly_column .111 ; 111 102 #DEFINE dm_divetime_minsonly_column .111 ; 111
103 #DEFINE dm_divetime_bot dm_divetime_row+.34 ; 48 103 #DEFINE dm_divetime_bot dm_divetime_row+.34 ; 48
104 #DEFINE dm_divetime_rgt .159 ; 159 104 #DEFINE dm_divetime_rgt .159 ; 159
105 #DEFINE dm_divetime_secs_row dm_divetime_row+.11 ; 25 105 #DEFINE dm_divetime_secs_row dm_divetime_row+.11 ; 25
106 #DEFINE dm_divetime_secs_column dm_divetime_column+.24 ; 139 106 #DEFINE dm_divetime_secs_column dm_divetime_column+.24 ; 139
107 #DEFINE dm_divetime_alt_row dm_offset ; 14 107 #DEFINE dm_divetime_alt_row dm_offset ; 14
108 #DEFINE dm_divetime_alt_column .68 108 #DEFINE dm_divetime_alt_column .68 ; 68
109 ; Warning icon 109 ; Warning icon
110 #DEFINE dm_warning_icon_row dm_offset+.41 ; 55 110 #DEFINE dm_warning_icon_row dm_offset+.41 ; 55
111 #DEFINE dm_warning_icon_column .137 ; 137 111 #DEFINE dm_warning_icon_column .137 ; 137
112 #DEFINE dm_warning_icon_bot dm_warning_icon_row+.38 ; 93 112 #DEFINE dm_warning_icon_bot dm_warning_icon_row+.38 ; 93
113 #DEFINE dm_warning_icon_rgt dm_warning_icon_column+.21 ; 156 113 #DEFINE dm_warning_icon_rgt dm_warning_icon_column+.21 ; 156
114 ; Apnea dive time 114 ; Apnea dive time
115 #DEFINE dm_divetime_apnoe_row dm_offset ; 14 115 #DEFINE dm_divetime_apnoe_row dm_offset ; 14
116 #DEFINE dm_divetime_apnoe_column .103 ; 103 116 #DEFINE dm_divetime_apnoe_column .103 ; 103
117 #DEFINE dm_divetime_apnoe_secs_row dm_divetime_apnoe_row+.11 ; 25 117 #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 118 #DEFINE dm_divetime_apnoe_secs_column dm_divetime_apnoe_column+.36 ; 139
119 ; Apnea total time 119 ; Apnea total time
120 #DEFINE dm_apnoe_total_divetime_row dm_divetime_apnoe_row+.50 ; 64 120 #DEFINE dm_apnoe_total_divetime_row dm_divetime_apnoe_row+.50 ; 64
121 #DEFINE dm_apnoe_total_divetime_column dm_divetime_apnoe_column ; 103 121 #DEFINE dm_apnoe_total_divetime_column dm_divetime_apnoe_column ; 103
122 #DEFINE dm_apnoe_total_divetime_secs_row dm_apnoe_total_divetime_row+.11 ; 75 122 #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 123 #DEFINE dm_apnoe_total_divetime_secs_col dm_divetime_apnoe_column+.36 ; 139
124 #DEFINE dm_total_apnoe_text_row dm_apnoe_total_divetime_row-.11 ; 53 124 #DEFINE dm_total_apnoe_text_row dm_apnoe_total_divetime_row-.11 ; 53
125 #DEFINE dm_total_apnoe_text_column .132 ; 132 125 #DEFINE dm_total_apnoe_text_column .132 ; 132
126 ; I. End of the upper content row. (0-99) 126 ; I. End of the upper content row. (0-99)
127 127
128
129
130 ; 1px space between the 1st and 2nd content rows 128 ; 1px space between the 1st and 2nd content rows
131 #DEFINE dm_sep_1_2_row dm_offset+.86 ; 100 129 #DEFINE dm_sep_1_2_row dm_offset+.86 ; 100
132
133
134 130
135 ; II. Custom/selectable content row 131 ; II. Custom/selectable content row
136 ; The costume view display area is: 101,163,0,159 (t,b,l,r), or 0,101->159,163 132 ; The costume view display area is: 101,163,0,159 (t,b,l,r), or 0,101->159,163
137 ; 1. Stopwatch with avarage depth 133 ; 1. Stopwatch with avarage depth
138 ; 2. Decoplan - decompression stops up to 6 stops 134 ; 2. Decoplan - decompression stops up to 6 stops
139 ; 3. Time, EAD/END and tissue saturation (graph) 135 ; 3. Time, EAD/END and tissue saturation (graph)
140 ; 4. GF and aGF pairs 136 ; 4. GF and aGF pairs
141 ; 5. Compass 137 ; 5. Compass
142 ; 6. HUD - 3 sensor readings 138 ; 6. HUD - 3 sensor readings
143 ; 7. Gas list 139 ; 7. Gas list
144 ; 8. Ceiling (for GF_hi) 140 ; 8. Ceiling (for GF_hi)
145 ;******* Custom content / Global ******* 141 ;******* Custom content / Global *******
146 #DEFINE dm_customview_row dm_offset+.87 ; 101 142 #DEFINE dm_customview_row dm_offset+.87 ; 101
147 #DEFINE dm_customview_column .0 ; 0 143 #DEFINE dm_customview_column .0 ; 0
148 #DEFINE dm_customview_bot dm_customview_row+.62 ; 163 144 #DEFINE dm_customview_bot dm_customview_row+.62 ; 163
149 #DEFINE dm_customview_rgt .159 ; 159 145 #DEFINE dm_customview_rgt .159 ; 159
150 146
151 ;******* Custom content / #1 - Avg depth, stopwatch and avg depth ******* 147 ;******* Custom content / #1 - Avg depth, stopwatch and avg depth *******
152 ; Title 148 ; Title
153 #DEFINE dm_custom_avr_stop_title_row dm_customview_row+.1 ; 102 149 #DEFINE dm_custom_avr_stop_title_row dm_customview_row+.1 ; 102
154 #DEFINE dm_custom_avr_stop_title_column1 .2 ; 2 150 #DEFINE dm_custom_avr_stop_title_column1 .2 ; 2
155 #DEFINE dm_custom_avr_stop_title_column2 .57 ; 57 151 #DEFINE dm_custom_avr_stop_title_column2 .57 ; 57
156 #DEFINE dm_custom_avr_stop_title_column3 .110 ; 110 152 #DEFINE dm_custom_avr_stop_title_column3 .110 ; 110
157 ; Values 153 ; Values
158 #DEFINE dm_custom_avr_stop_row dm_customview_row+.16 ; 117 154 #DEFINE dm_custom_avr_stop_row dm_customview_row+.16 ; 117
159 #DEFINE dm_custom_avr_stop_column1 .0 ; 0 155 #DEFINE dm_custom_avr_stop_column1 .0 ; 0
160 #DEFINE dm_custom_avr_stop_column2 .54 ; 54 156 #DEFINE dm_custom_avr_stop_column2 .54 ; 54
161 #DEFINE dm_custom_avr_stop_column3 .118 ; 118 157 #DEFINE dm_custom_avr_stop_column3 .118 ; 118
162 158
163 ;******* Custom content / #2 - Decompressions stops ******* 159 ;******* Custom content / #2 - Decompressions stops *******
164 ; Title 160 ; Title
165 #DEFINE dm_custom_decoplan_title_row dm_customview_row ; 101 161 #DEFINE dm_custom_decoplan_title_row dm_customview_row ; 101
166 #DEFINE dm_custom_decoplan_title_column .65 ; 65 162 #DEFINE dm_custom_decoplan_title_column .65 ; 65
167 ; 1st col 163 ; 1st col
168 #DEFINE dm_cust_dstop_2nd_stop_row dm_customview_row+.14 ; 115 164 #DEFINE dm_cust_dstop_2nd_stop_row dm_customview_row+.14 ; 115
169 #DEFINE dm_cust_dstop_2nd_stop_column .0 ; 0 165 #DEFINE dm_cust_dstop_2nd_stop_column .0 ; 0
170 #DEFINE dm_cust_dstop_3rd_stop_row dm_customview_row+.37 ; 138 166 #DEFINE dm_cust_dstop_3rd_stop_row dm_customview_row+.37 ; 138
171 #DEFINE dm_cust_dstop_3rd_stop_column dm_cust_dstop_2nd_stop_column ; 0 167 #DEFINE dm_cust_dstop_3rd_stop_column dm_cust_dstop_2nd_stop_column ; 0
172 ; 2nd col 168 ; 2nd col
173 #DEFINE dm_cust_dstop_4th_stop_row dm_cust_dstop_2nd_stop_row ; 116 169 #DEFINE dm_cust_dstop_4th_stop_row dm_cust_dstop_2nd_stop_row ; 116
174 #DEFINE dm_cust_dstop_4th_stop_column .56 ; 56 170 #DEFINE dm_cust_dstop_4th_stop_column .56 ; 56
175 #DEFINE dm_cust_dstop_5th_stop_row dm_cust_dstop_3rd_stop_row ; 140 171 #DEFINE dm_cust_dstop_5th_stop_row dm_cust_dstop_3rd_stop_row ; 140
176 #DEFINE dm_cust_dstop_5th_stop_column dm_cust_dstop_4th_stop_column ; 56 172 #DEFINE dm_cust_dstop_5th_stop_column dm_cust_dstop_4th_stop_column ; 56
177 ; 3rd col 173 ; 3rd col
178 #DEFINE dm_cust_dstop_6th_stop_row dm_cust_dstop_2nd_stop_row ; 116 174 #DEFINE dm_cust_dstop_6th_stop_row dm_cust_dstop_2nd_stop_row ; 116
179 #DEFINE dm_cust_dstop_6th_stop_column .111 ; 111 175 #DEFINE dm_cust_dstop_6th_stop_column .111 ; 111
180 #DEFINE dm_cust_dstop_7th_stop_row dm_cust_dstop_3rd_stop_row ; 140 176 #DEFINE dm_cust_dstop_7th_stop_row dm_cust_dstop_3rd_stop_row ; 140
181 #DEFINE dm_cust_dstop_7th_stop_column dm_cust_dstop_6th_stop_column ; 111 177 #DEFINE dm_cust_dstop_7th_stop_column dm_cust_dstop_6th_stop_column ; 111
182 178
183 ;******* Custom content / #3 - Time, EAD/END and tissue saturation ******* 179 ;******* Custom content / #3 - Time, EAD/END and tissue saturation *******
184 ; Clock 180 ; Clock
185 #DEFINE dm_custom_clock_title_row dm_customview_row+.1 ; 102 181 #DEFINE dm_custom_clock_title_row dm_customview_row+.1 ; 102
186 #DEFINE dm_custom_clock_row dm_customview_row+.16 ; 117 182 #DEFINE dm_custom_clock_row dm_customview_row+.16 ; 117
187 #DEFINE dm_custom_clock_column .0 ; 0 183 #DEFINE dm_custom_clock_column .0 ; 0
188 #DEFINE dm_custom_endtime_row dm_custom_clock_row+.23 ; 140 - not used 184 #DEFINE dm_custom_endtime_row dm_custom_clock_row+.23 ; 140 - not used
189 #DEFINE dm_custom_endtime_column dm_custom_clock_column ; 0 - not used 185 #DEFINE dm_custom_endtime_column dm_custom_clock_column ; 0 - not used
190 ; EAD/AND 186 ; EAD/AND
191 #DEFINE dm_custom_eadend_title_row dm_customview_row+.1 ; 102 187 #DEFINE dm_custom_eadend_title_row dm_customview_row+.1 ; 102
192 #DEFINE dm_custom_ead_row dm_customview_row+.16 ; 117 188 #DEFINE dm_custom_ead_row dm_customview_row+.16 ; 117
193 #DEFINE dm_custom_ead_column .50 ; 50 189 #DEFINE dm_custom_ead_column .50 ; 50
194 #DEFINE dm_custom_end_row dm_custom_ead_row+.23 ; 140 190 #DEFINE dm_custom_end_row dm_custom_ead_row+.23 ; 140
195 #DEFINE dm_custom_end_column dm_custom_ead_column ; 50 191 #DEFINE dm_custom_end_column dm_custom_ead_column ; 50
196 ; Tissue title 192 ; Tissue title
197 #DEFINE dm_custom_tissue_title_row dm_customview_row+.1 ; 102 193 #DEFINE dm_custom_tissue_title_row dm_customview_row+.1 ; 102
198 #DEFINE dm_custom_tissue_title_column .120 ; 120 194 #DEFINE dm_custom_tissue_title_column .120 ; 120
199 ; N2 / He values 195 ; N2 / He values
200 #DEFINE dm_custom_tissue_N2_row dm_custom_ead_row+.5 ; 122 196 #DEFINE dm_custom_tissue_N2_row dm_custom_ead_row+.5 ; 122
201 #DEFINE dm_custom_tissue_N2_column .105 ; 105 197 #DEFINE dm_custom_tissue_N2_column .105 ; 105
202 #DEFINE dm_custom_tissue_He_row dm_custom_end_row+.5 ; 145 198 #DEFINE dm_custom_tissue_He_row dm_custom_end_row+.5 ; 145
203 #DEFINE dm_custom_tissue_He_column dm_custom_tissue_N2_column ; 105 199 #DEFINE dm_custom_tissue_He_column dm_custom_tissue_N2_column ; 105
204 ; Tissue diagram 200 ; Tissue diagram
205 #DEFINE dm_custom_tissue_diagram_top dm_customview_row+.16 ; 117 201 #DEFINE dm_custom_tissue_diagram_top dm_customview_row+.16 ; 117
206 #DEFINE dm_custom_tissue_diagram_bottom dm_custom_tissue_diagram_top+.43 ; 160 202 #DEFINE dm_custom_tissue_diagram_bottom dm_custom_tissue_diagram_top+.43; 160
207 #DEFINE dm_custom_tissue_diagram_left .116 ; 116 203 #DEFINE dm_custom_tissue_diagram_left .116 ; 116
208 #DEFINE dm_custom_tissue_diagram_frame_spacing .8 ; 8 204 #DEFINE dm_custom_tissue_diagram_frame_spacing .8 ; 8
209 205
210 ;******* Custom content / #4 - GF-lo/hi, aGF-lo/hi, current GF value ******* 206 ;******* Custom content / #4 - GF-lo/hi, aGF-lo/hi, current GF value *******
211 ; Title 207 ; Title
212 #DEFINE dm_custom_gf_title_row dm_customview_row+.1 ; 102 208 #DEFINE dm_custom_gf_title_row dm_customview_row+.1 ; 102
213 #DEFINE dm_custom_gf_title_col1 .8 ; 8 209 #DEFINE dm_custom_gf_title_col1 .8 ; 8
214 #DEFINE dm_custom_gf_title_col2 .62 ; 62 210 #DEFINE dm_custom_gf_title_col2 .62 ; 62
215 #DEFINE dm_custom_gf_title_col3 .115 ; 115 211 #DEFINE dm_custom_gf_title_col3 .115 ; 115
216 ; GF 212 ; GF
217 #DEFINE dm_custom_gf_row dm_customview_row+.18 ; 119 213 #DEFINE dm_custom_gf_row dm_customview_row+.18 ; 119
218 #DEFINE dm_custom_gf_column .0 ; 0 214 #DEFINE dm_custom_gf_column .0 ; 0
219 ; aGF 215 ; aGF
220 #DEFINE dm_custom_agf_row dm_custom_gf_row ; 119 216 #DEFINE dm_custom_agf_row dm_custom_gf_row ; 119
221 #DEFINE dm_custom_agf_column .60 ; 60 217 #DEFINE dm_custom_agf_column .60 ; 60
222 ; Current GF 218 ; Current GF
223 #DEFINE dm_custom_currentgf_row dm_custom_gf_row ; 119 219 #DEFINE dm_custom_currentgf_row dm_custom_gf_row ; 119
224 #DEFINE dm_custom_currentgf_column .118 ; 118 220 #DEFINE dm_custom_currentgf_column .118 ; 118
225 221
226 ;******* Custom content / #5 - Compass ******* 222 ;******* Custom content / #5 - Compass *******
227 ; Title 223 ; Title
228 #DEFINE dm_custom_compass_mask_row dm_customview_row ; 101 224 #DEFINE dm_custom_compass_mask_row dm_customview_row ; 101
229 #DEFINE dm_custom_compass_mask_column .65 ; 65 225 #DEFINE dm_custom_compass_mask_column .65 ; 65
230 ; Head and arrows 226 ; Head and arrows
231 #DEFINE dm_custom_compass_head_row dm_customview_row+.39 ; 140 227 #DEFINE dm_custom_compass_head_row dm_customview_row+.39 ; 140
232 #DEFINE dm_custom_compass_head_column .62 ; 62 228 #DEFINE dm_custom_compass_head_column .62 ; 62
233 #DEFINE dm_custom_compass_ldir_column .5 ; 5 229 #DEFINE dm_custom_compass_ldir_column .5 ; 5
234 #DEFINE dm_custom_compass_rdir_column .140 ; 140 230 #DEFINE dm_custom_compass_rdir_column .140 ; 140
235 ; Ruler 231 ; Ruler
236 #DEFINE dm_custom_compass_graph_row dm_customview_row ; 101 232 #DEFINE dm_custom_compass_graph_row dm_customview_row ; 101
237 #DEFINE dm_custom_compass_graph_height .33 ; 33 233 #DEFINE dm_custom_compass_graph_height .33 ; 33
238 #DEFINE dm_custom_compass_tick_height .3 ; 3 234 #DEFINE dm_custom_compass_tick_height .3 ; 3
239 #DEFINE dm_custom_compass_tick_top_top dm_custom_compass_graph_row+.1 ; 102 235 #DEFINE dm_custom_compass_tick_top_top dm_custom_compass_graph_row+.1 ; 102
240 #DEFINE dm_custom_compass_tick_top_bot dm_custom_compass_graph_row+.4 ; 105 236 #DEFINE dm_custom_compass_tick_top_bot dm_custom_compass_graph_row+.4 ; 105
241 #DEFINE dm_custom_compass_label_row dm_custom_compass_graph_row+.6 ; 107 237 #DEFINE dm_custom_compass_label_row dm_custom_compass_graph_row+.6 ; 107
242 #DEFINE dm_custom_compass_label_height .24 ; 24 238 #DEFINE dm_custom_compass_label_height .24 ; 24
243 #DEFINE dm_custom_compass_tick_bot_top dm_custom_compass_graph_row+.30 ; 131 239 #DEFINE dm_custom_compass_tick_bot_top dm_custom_compass_graph_row+.30 ; 131
244 #DEFINE dm_custom_compass_tick_bot_bot dm_custom_compass_graph_row+.33 ; 134 240 #DEFINE dm_custom_compass_tick_bot_bot dm_custom_compass_graph_row+.33 ; 134
245 241
246 ;******* Custom content / #6 - HUD / O2 sensor values ******* 242 ;******* Custom content / #6 - HUD / O2 sensor values *******
247 #DEFINE dm_custom_hud_row dm_customview_row+.1 ; 102 243 #DEFINE dm_custom_hud_row dm_customview_row+.1 ; 102
248 #DEFINE dm_custom_hud_column1 .10 ; 10 244 #DEFINE dm_custom_hud_column1 .10 ; 10
249 #DEFINE dm_custom_hud_column2 .65 ; 65 245 #DEFINE dm_custom_hud_column2 .65 ; 65
250 #DEFINE dm_custom_hud_column3 .120 ; 120 246 #DEFINE dm_custom_hud_column3 .120 ; 120
251 #DEFINE dm_custom_hud_data_row dm_customview_row+.16 ; 117 247 #DEFINE dm_custom_hud_data_row dm_customview_row+.16 ; 117
252 #DEFINE dm_custom_hud_sensor1_column .6 ; 6 248 #DEFINE dm_custom_hud_sensor1_column .6 ; 6
253 #DEFINE dm_custom_hud_sensor2_column .62 ; 62 249 #DEFINE dm_custom_hud_sensor2_column .62 ; 62
254 #DEFINE dm_custom_hud_sensor3_column .118 ; 118 250 #DEFINE dm_custom_hud_sensor3_column .118 ; 118
255 251
256 ;******* Custom content / #7 - Gas list ******* 252 ;******* Custom content / #7 - Gas list *******
257 ; Title 253 ; Title
258 #DEFINE dm_custom_dyn_gas_mask_row dm_customview_row ; 101 254 #DEFINE dm_custom_dyn_gas_mask_row dm_customview_row ; 101
259 #DEFINE dm_custom_dyn_gas_mask_column .59 ; 59 255 #DEFINE dm_custom_dyn_gas_mask_column .59 ; 59
260 ; col #1 256 ; col #1
261 #DEFINE dm_custom_dyn_gas_row1 dm_customview_row+.14 ; 115 257 #DEFINE dm_custom_dyn_gas_row1 dm_customview_row+.14 ; 115
262 #DEFINE dm_custom_dyn_gas_column1 .0 ; 0 258 #DEFINE dm_custom_dyn_gas_column1 .0 ; 0
263 ; col #2 259 ; col #2
264 #DEFINE dm_custom_dyn_gas_row2 dm_customview_row+.37 ; 138 260 #DEFINE dm_custom_dyn_gas_row2 dm_customview_row+.37 ; 138
265 #DEFINE dm_custom_dyn_gas_column2 .80 ; 80 261 #DEFINE dm_custom_dyn_gas_column2 .80 ; 80
266 262
267 ;******* Custom content / #8 - Ceiling value for GF_hi ******* 263 ;******* Custom content / #8 - Ceiling value for GF_hi *******
268 ; Title 264 ; Title
269 #DEFINE dm_custom_ceiling_text_row dm_customview_row+.1 ; 102 265 #DEFINE dm_custom_ceiling_text_row dm_customview_row+.1 ; 102
270 #DEFINE dm_custom_ceiling_text_column .68 ; 66 266 #DEFINE dm_custom_ceiling_text_column .68 ; 66
271 #DEFINE dm_custom_ceiling_ppo2_column .8 ; 8 267 #DEFINE dm_custom_ceiling_ppo2_column .8 ; 8
272 #DEFINE dm_custom_ceiling_ppo2_col_dil .0 ; 0 NEW tuned position because text is longer ## (?) 268 #DEFINE dm_custom_ceiling_ppo2_col_dil .0 ; 0
273 269
274 ; Value 270 ; Value
275 #DEFINE dm_custom_ceiling_value_row dm_customview_row+.18 ; 119 271 #DEFINE dm_custom_ceiling_value_row dm_customview_row+.18 ; 119
276 #DEFINE dm_custom_ceiling_value_column .66 ; 64 272 #DEFINE dm_custom_ceiling_value_column .66 ; 64
277 #DEFINE dm_custom_ceiling_ppo2_val_col .2 ; 2 273 #DEFINE dm_custom_ceiling_ppo2_val_col .2 ; 2
278 274
279 ;******* Custom content / #10 - Sensor check view ******* 275 ;******* Custom content / #10 - Sensor check view *******
280 ; Title 276 ; Title
281 #DEFINE dm_custom_s_check_text_row dm_customview_row+.1 ; 102 277 #DEFINE dm_custom_s_check_text_row dm_customview_row+.1 ; 102
282 #DEFINE dm_custom_s_check_text_column .50 ; 50 278 #DEFINE dm_custom_s_check_text_column .50 ; 50
283 #DEFINE dm_custom_ppO2_text_column .115 ; 115 279 #DEFINE dm_custom_ppO2_text_column .115 ; 115
284 #DEFINE dm_custom_ppDil_text_column .2 ; 2 280 #DEFINE dm_custom_ppDil_text_column .2 ; 2
285 ; Value 281 ; Value
286 #DEFINE dm_custom_s_check_ppo2_o2_column .108 ; 108 282 #DEFINE dm_custom_s_check_ppo2_o2_column .108 ; 108
287 #DEFINE dm_custom_s_check_ppo2_dil_col .8 ; 8 283 #DEFINE dm_custom_s_check_ppo2_dil_col .8 ; 8
288 #DEFINE dm_custom_s_check_value_row dm_customview_row+.18 ; 119 284 #DEFINE dm_custom_s_check_value_row dm_customview_row+.18 ; 119
289 285
290 ;******* Custom content / #12 - PSCR Info ******* 286 ;******* Custom content / #12 - PSCR Info *******
291 ; Title 287 ; Title
292 #DEFINE dm_custom_pscr_text_row dm_customview_row+.1 ; 102 288 #DEFINE dm_custom_pscr_text_row dm_customview_row+.1 ; 102
293 #DEFINE dm_custom_pscr_text_drop_column .55 289 #DEFINE dm_custom_pscr_text_drop_column .55
294 #DEFINE dm_custom_pscr_text_ratio_column .105 290 #DEFINE dm_custom_pscr_text_ratio_column .105
295 ; Value 291 ; Value
296 #DEFINE dm_custom_pscr_drop_column .66 292 #DEFINE dm_custom_pscr_drop_column .66
297 #DEFINE dm_custom_pscr_drop_row dm_customview_row+.18 293 #DEFINE dm_custom_pscr_drop_row dm_customview_row+.18
298 #DEFINE dm_custom_pscr_ratio_column .110 294 #DEFINE dm_custom_pscr_ratio_column .110
299 #DEFINE dm_custom_pscr_ratio_row dm_customview_row+.18 295 #DEFINE dm_custom_pscr_ratio_row dm_customview_row+.18
300 296
301 ; II. End of the custom content row. (101-163) 297 ; II. End of the custom content row. (101-163)
302 298
303
304
305 ; 1px space between the 2nd and 3rd content rows 299 ; 1px space between the 2nd and 3rd content rows
306 #DEFINE dm_sep_2_3_row dm_offset+.150 ; 164 300 #DEFINE dm_sep_2_3_row dm_offset+.150 ; 164
307
308 301
309 302
310 ; III. The 3rd content row contains temperature, active gas, NDL/TTS time, 303 ; III. The 3rd content row contains temperature, active gas, NDL/TTS time,
311 ; simulator menu, active/dil gas, decostop, Apnea surface time and max depth 304 ; simulator menu, active/dil gas, decostop, Apnea surface time and max depth
312 ; The content row contains 2 columns: 305 ; The content row contains 2 columns:
313 ; - temperature, gas names 306 ; - temperature, gas names
314 ; - NDL/TTS, DecoStop 307 ; - NDL/TTS, DecoStop
315 #DEFINE dm_3rdrow_top dm_offset+.151 ; 165 308 #DEFINE dm_3rdrow_top dm_offset+.151 ; 165
316 #DEFINE dm_3rdrow_bot .239 ; 239 309 #DEFINE dm_3rdrow_bot .239 ; 239
317 #DEFINE dm_3rdrow_lft .0 ; 0 310 #DEFINE dm_3rdrow_lft .0 ; 0
318 #DEFINE dm_3rdrow_rgt .159 ; 159 311 #DEFINE dm_3rdrow_rgt .159 ; 159
319 312
320 ;******* Bottom content / 1st col ******* 313 ;******* Bottom content / 1st col *******
321 ; Temperature 314 ; Temperature
322 #DEFINE dm_temp_row dm_3rdrow_top-.4 ; 161 315 #DEFINE dm_temp_row dm_3rdrow_top-.4 ; 161
323 #DEFINE dm_temp_column .0 ; 0 316 #DEFINE dm_temp_column .0 ; 0
324 ; Simulation text 317 ; Simulation text
325 #DEFINE dm_simtext_row dm_3rdrow_top ; 165 318 #DEFINE dm_simtext_row dm_3rdrow_top ; 165
326 #DEFINE dm_simtext_column .35 ; 35 319 #DEFINE dm_simtext_column .35 ; 35
327 ; Diluent gas 320 ; Diluent gas
328 #DEFINE dm_active_dil_row dm_3rdrow_top+.19 ; 185 321 #DEFINE dm_active_dil_row dm_3rdrow_top+.19 ; 185
329 #DEFINE dm_active_dil_column .0 ; 0 322 #DEFINE dm_active_dil_column .0 ; 0
330 ; active gas for OC, blinking better gas, setpoint or bailout for CCR 323 ; active gas for OC, blinking better gas, setpoint or bailout for CCR
331 #DEFINE dm_active_gas_row .208 ; 208 324 #DEFINE dm_active_gas_row .208 ; 208
332 #DEFINE dm_active_gas_column .0 ; 0 325 #DEFINE dm_active_gas_column .0 ; 0
333 326
334 ;******* Bottom content / 2nd col ******* 327 ;******* Bottom content / 2nd col *******
335 ; Next deco stop for TTS 328 ; Next deco stop for TTS
336 #DEFINE dm_decostop_1st_stop_row dm_3rdrow_top ; 165 329 #DEFINE dm_decostop_1st_stop_row dm_3rdrow_top ; 165
337 #DEFINE dm_decostop_1st_stop_column .82 ; 82 330 #DEFINE dm_decostop_1st_stop_column .82 ; 82
338 ; Safety Stop 331 ; Safety Stop
339 #DEFINE dm_safetystop_row dm_3rdrow_top ; 165 (pre: 171) 332 #DEFINE dm_safetystop_row dm_3rdrow_top ; 165
340 #DEFINE dm_safetystop_column .118 ; 118 333 #DEFINE dm_safetystop_column .118 ; 118
341 #DEFINE dm_safetystop_bot dm_safetystop_row+.31 ; 196 334 #DEFINE dm_safetystop_bot dm_safetystop_row+.31 ; 196
342 #DEFINE dm_safetystop_text_row dm_safetystop_row+.1 ; 166 (pre: 175) 335 #DEFINE dm_safetystop_text_row dm_safetystop_row+.1 ; 166
343 #DEFINE dm_safetystop_text_column .80 ; 80 - for the 4char "Stop"!!! 336 #DEFINE dm_safetystop_text_column .80 ; 80 - for the 4char "Stop"!!!
344 ; TTS 337 ; TTS
345 #DEFINE dm_tts_value_row dm_3rdrow_top+.32; ; 197 (pre: 207) 338 #DEFINE dm_tts_value_row dm_3rdrow_top+.32; ; 197 (pre: 207)
346 #DEFINE dm_tts_value_column .118 ; 118 339 #DEFINE dm_tts_value_column .118 ; 118
347 #DEFINE dm_tts_text_row dm_tts_value_row+.5 ; 202 (pre: 211) 340 #DEFINE dm_tts_text_row dm_tts_value_row+.5 ; 202 (pre: 211)
348 #DEFINE dm_tts_text_column .85 ; 85 341 #DEFINE dm_tts_text_column .85 ; 85
349 ; NDL - the same position as TTS 342 ; NDL - the same position as TTS
350 #DEFINE dm_ndl_value_row dm_tts_value_row ; 197 343 #DEFINE dm_ndl_value_row dm_tts_value_row ; 197
351 #DEFINE dm_ndl_value_column dm_tts_value_column ; 118 344 #DEFINE dm_ndl_value_column dm_tts_value_column ; 118
352 #DEFINE dm_ndl_text_row dm_tts_text_row ; 202 345 #DEFINE dm_ndl_text_row dm_tts_text_row ; 202
353 #DEFINE dm_ndl_text_column dm_tts_text_column ; 85 346 #DEFINE dm_ndl_text_column dm_tts_text_column ; 85
354 ; FTTS (only modded screen) 347 ; FTTS (only modded screen)
355 #DEFINE dm_ftts_value_row dm_3rdrow_top+.64 ; 215 348 #DEFINE dm_ftts_value_row dm_3rdrow_top+.64 ; 215
356 #DEFINE dm_ftts_value_column .97 ; 97 349 #DEFINE dm_ftts_value_column .97 ; 97
357 ; Grid line (only modded screen) 350 ; Grid line (only modded screen)
358 #DEFINE dm_gassep_row dm_sep_2_3_row ; 164 351 #DEFINE dm_gassep_row dm_sep_2_3_row ; 164
359 #DEFINE dm_gassep_bot .239 ; .239 352 #DEFINE dm_gassep_bot .239 ; .239
360 #DEFINE dm_gassep_column .78 ; .78 353 #DEFINE dm_gassep_column .78 ; .78
361 354
362 ;******* Bottom content / Apnea mode *******; 355 ;******* Bottom content / Apnea mode *******;
363 #DEFINE dm_apnoe_surface_time_text_row .190 ; 190 356 #DEFINE dm_apnoe_surface_time_text_row .190 ; 190
364 #DEFINE dm_apnoe_surface_time_text_col .30 ; 30 357 #DEFINE dm_apnoe_surface_time_text_col .30 ; 30
365 #DEFINE dm_apnoe_surface_time_row .204 ; 204 358 #DEFINE dm_apnoe_surface_time_row .204 ; 204
366 #DEFINE dm_apnoe_surface_time_column .15 ; 15 359 #DEFINE dm_apnoe_surface_time_column .15 ; 15
367 #DEFINE dm_apnoe_last_max_depth_text_row .190 ; 190 360 #DEFINE dm_apnoe_last_max_depth_text_row .190 ; 190
368 #DEFINE dm_apnoe_last_max_depth_text_col .100 ; 100 361 #DEFINE dm_apnoe_last_max_depth_text_col .100 ; 100
369 #DEFINE dm_apnoe_last_max_depth_row .204 ; 204 362 #DEFINE dm_apnoe_last_max_depth_row .204 ; 204
370 #DEFINE dm_apnoe_last_max_depth_column .100 ; 100 363 #DEFINE dm_apnoe_last_max_depth_column .100 ; 100
371 364
372 365
373 ; IV. The last set of parameters are for the menus displayed in dive mode 366 ; IV. The last set of parameters are for the menus displayed in dive mode
374 ; Divemode menu 367 ; Divemode menu
375 #DEFINE dm_menu_row .164 ; 164 Upper row -- the frame's top line is the separator 368 #DEFINE dm_menu_row .164 ; 164 Upper row -- the frame's top line is the separator
376 #DEFINE dm_menu_lower .239 ; 239 Lower border 369 #DEFINE dm_menu_lower .239 ; 239 Lower border
377 #DEFINE dm_menu_left .0 ; 0 Left 370 #DEFINE dm_menu_left .0 ; 0 Left
378 #DEFINE dm_menu_right .159 ; 159 Right 371 #DEFINE dm_menu_right .159 ; 159 Right
379 372
380 #DEFINE dm_menu_item1_row dm_menu_row+.1 ; 165 373 #DEFINE dm_menu_item1_row dm_menu_row+.1 ; 165
381 #DEFINE dm_menu_item1_column .9 ; 9 374 #DEFINE dm_menu_item1_column .9 ; 9
382 #DEFINE dm_menu_item2_row dm_menu_item1_row+.24 ; 189 375 #DEFINE dm_menu_item2_row dm_menu_item1_row+.24 ; 189
383 #DEFINE dm_menu_item2_column dm_menu_item1_column ; 9 376 #DEFINE dm_menu_item2_column dm_menu_item1_column ; 9
384 #DEFINE dm_menu_item3_row dm_menu_item2_row+.24 ; 213 377 #DEFINE dm_menu_item3_row dm_menu_item2_row+.24 ; 213
385 #DEFINE dm_menu_item3_column dm_menu_item1_column ; 9 378 #DEFINE dm_menu_item3_column dm_menu_item1_column ; 9
386 379
387 #DEFINE dm_menu_item4_row dm_menu_row+.1 ; 165 380 #DEFINE dm_menu_item4_row dm_menu_row+.1 ; 165
388 #DEFINE dm_menu_item4_column .89 ; 89 381 #DEFINE dm_menu_item4_column .89 ; 89
389 #DEFINE dm_menu_item5_row dm_menu_item4_row+.24 ; 189 382 #DEFINE dm_menu_item5_row dm_menu_item4_row+.24 ; 189
390 #DEFINE dm_menu_item5_column dm_menu_item4_column ; 89 383 #DEFINE dm_menu_item5_column dm_menu_item4_column ; 89
391 #DEFINE dm_menu_item6_row dm_menu_item5_row+.24 ; 213 384 #DEFINE dm_menu_item6_row dm_menu_item5_row+.24 ; 213
392 #DEFINE dm_menu_item6_column dm_menu_item4_column ; 89 385 #DEFINE dm_menu_item6_column dm_menu_item4_column ; 89
393 386