Mercurial > public > hwos_code
annotate src/divemode.inc @ 259:151148e2281f
minor cleanup
author | heinrichsweikamp |
---|---|
date | Mon, 23 Mar 2015 19:58:19 +0100 |
parents | ad62dff7739a |
children | 5ad479f2a868 |
rev | line source |
---|---|
0 | 1 ;============================================================================= |
2 ; | |
3 ; File divemode.inc | |
4 ; | |
5 ; | |
6 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved. | |
7 ;============================================================================= | |
8 ; HISTORY | |
9 ; 2011-08-15 : [mH] moving from OSTC code | |
10 | |
11 extern set_dive_modes | |
12 extern diveloop | |
13 extern apnoe_calc_maxdepth | |
14 | |
15 ; Divemode layout: | |
16 ; row=0...239 | |
17 ; column=0...159 (x2) | |
18 | |
19 #DEFINE depth_row .14 | |
20 #DEFINE depth_column .0 | |
21 #DEFINE depth_feet_row depth_row | |
22 #DEFINE depth_feet_column .0 | |
23 #DEFINE depth_dm_row depth_row+.25 | |
24 #DEFINE depth_dm_column .40 | |
25 | |
26 #DEFINE max_depth_row depth_row | |
27 #DEFINE max_depth_column .64 | |
11 | 28 #DEFINE max_depth_dm_column .87 |
29 #DEFINE max_depth_dm_row depth_row+.12 | |
0 | 30 #DEFINE max_depth_feet_row max_depth_row |
31 #DEFINE max_depth_feet_column .64 | |
32 | |
33 #DEFINE divetime_row depth_row | |
34 #DEFINE divetime_column .103 ; Mins:Secs | |
35 #DEFINE divetime_minsonly_column .100 ; Minutes only | |
36 #DEFINE divetime_secs_column .139 | |
37 #DEFINE divetime_secs_row depth_row+.12 | |
38 #DEFINE divetime_apnoe_row depth_row | |
39 #DEFINE divetime_apnoe_column .103 | |
38 | 40 #DEFINE apnoe_total_divetime_row divetime_apnoe_row+.50 |
41 #DEFINE apnoe_total_divetime_column divetime_apnoe_column | |
42 #DEFINE apnoe_total_divetime_secs_row apnoe_total_divetime_row+.12 | |
43 #DEFINE apnoe_total_divetime_secs_column divetime_secs_column | |
134
4574aed5cd4c
Show clock in Apnea mode, minor layout changes in Apnea mode
heinrichsweikamp
parents:
131
diff
changeset
|
44 #DEFINE total_apnoe_text_column .132 |
38 | 45 #DEFINE total_apnoe_text_row apnoe_total_divetime_row-.14 |
46 | |
0 | 47 |
48 #DEFINE divemode_mask_depth_row .0 | |
49 #DEFINE divemode_mask_depth_column .12 | |
50 #DEFINE divemode_mask_maxdepth_row .0 | |
51 #DEFINE divemode_mask_maxdepth_column .62 | |
52 #DEFINE divemode_mask_divetime_row .0 | |
53 #DEFINE divemode_mask_divetime_column .122 | |
54 | |
55 #DEFINE surface_apnoe_text_row .190 | |
56 #DEFINE surface_apnoe_text_column .30 | |
57 #DEFINE surface_time_apnoe_row .204 | |
58 #DEFINE surface_time_apnoe_column .15 | |
59 | |
60 #DEFINE last_max_apnoe_text_row .190 | |
61 #DEFINE last_max_apnoe_text_column .100 | |
62 #DEFINE apnoe_last_max_depth_row .204 | |
63 #DEFINE apnoe_last_max_depth_column .100 | |
64 | |
65 #DEFINE dive_temp_row .163 | |
213 | 66 #DEFINE dive_temp_column .2 |
0 | 67 |
68 ; TTS | |
69 #DEFINE tts_text_row .211 | |
70 #DEFINE tts_text_column .85 | |
71 #DEFINE tts_value_row .207 | |
72 #DEFINE tts_value_column .118 | |
73 | |
74 #DEFINE ndl_text_row tts_text_row | |
75 #DEFINE ndl_text_column tts_text_column | |
76 #DEFINE ndl_value_row tts_value_row | |
77 #DEFINE ndl_value_column tts_value_column | |
78 | |
79 #DEFINE active_gas_row .210 | |
213 | 80 #DEFINE active_gas_column .1 |
0 | 81 #DEFINE active_dil_row .186 |
213 | 82 #DEFINE active_dil_column .1 |
0 | 83 |
84 ; Warnings | |
85 #DEFINE warning_icon_row .55 | |
86 #DEFINE warning_icon_column .135 | |
87 #DEFINE warning1_row .50 | |
88 #DEFINE warning1_column .70 | |
89 #DEFINE warning2_row .74 | |
90 #DEFINE warning2_column warning1_column | |
91 #DEFINE warning_length .9 ; total string length | |
92 | |
93 #DEFINE velocity_text_row .76 | |
94 #DEFINE velocity_text_column .0 | |
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 | |
123 | 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 | |
0 | 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 | |
53
2825f1d2262f
NEW: Dynamic Gaslist in OC mode (Divemode, Customview 7)
heinrichsweikamp
parents:
38
diff
changeset
|
126 ; Customview Dynamic Gaslist |
2825f1d2262f
NEW: Dynamic Gaslist in OC mode (Divemode, Customview 7)
heinrichsweikamp
parents:
38
diff
changeset
|
127 #DEFINE dive_custom_dyn_mask_column .59 |
2825f1d2262f
NEW: Dynamic Gaslist in OC mode (Divemode, Customview 7)
heinrichsweikamp
parents:
38
diff
changeset
|
128 #DEFINE dive_custom_dyn_mask_row decoplan_title_row |
2825f1d2262f
NEW: Dynamic Gaslist in OC mode (Divemode, Customview 7)
heinrichsweikamp
parents:
38
diff
changeset
|
129 #DEFINE dive_custom_dyn_mask_row1 dive_hud_data_row |
2825f1d2262f
NEW: Dynamic Gaslist in OC mode (Divemode, Customview 7)
heinrichsweikamp
parents:
38
diff
changeset
|
130 #DEFINE dive_custom_dyn_mask_column1 .0 |
2825f1d2262f
NEW: Dynamic Gaslist in OC mode (Divemode, Customview 7)
heinrichsweikamp
parents:
38
diff
changeset
|
131 #DEFINE dive_custom_dyn_mask_row2 dive_hud_data_row+.23 |
2825f1d2262f
NEW: Dynamic Gaslist in OC mode (Divemode, Customview 7)
heinrichsweikamp
parents:
38
diff
changeset
|
132 #DEFINE dive_custom_dyn_mask_column2 .80 |
2825f1d2262f
NEW: Dynamic Gaslist in OC mode (Divemode, Customview 7)
heinrichsweikamp
parents:
38
diff
changeset
|
133 |
0 | 134 ; Customview clock/date, END/EAD and Tissues |
135 #DEFINE dive_clock_row dive_hud_data_row | |
136 #DEFINE dive_clock_column .0 | |
102
37275e0fa7f5
NEW: Show End-of-Dive time together with clock during deco
heinrichsweikamp
parents:
83
diff
changeset
|
137 #DEFINE dive_endtime_row dive_clock_row+.23 |
37275e0fa7f5
NEW: Show End-of-Dive time together with clock during deco
heinrichsweikamp
parents:
83
diff
changeset
|
138 #DEFINE dive_endtime_column dive_clock_column |
0 | 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 | |
104
223579e905c3
Show a Safety Stop if enabled (Menu "Deco Parameters")
heinrichsweikamp
parents:
102
diff
changeset
|
162 #DEFINE decostop_1st_stop_row .171 ; In medium font... |
223579e905c3
Show a Safety Stop if enabled (Menu "Deco Parameters")
heinrichsweikamp
parents:
102
diff
changeset
|
163 #DEFINE decostop_1st_stop_column .82 |
223579e905c3
Show a Safety Stop if enabled (Menu "Deco Parameters")
heinrichsweikamp
parents:
102
diff
changeset
|
164 #DEFINE safetystop_row .171 ; In medium font... |
131 | 165 #DEFINE safetystop_column .118 |
166 | |
167 #DEFINE safetystop_text_row .175 | |
168 #DEFINE safetystop_text_column .70 | |
0 | 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 | |
190 #DEFINE divemode_menu_row .164 ; Upper row | |
191 #DEFINE divemode_menu_lower .239 ; Lower border | |
192 #DEFINE divemode_menu_left .0 ; Left | |
193 #DEFINE divemode_menu_right .159 ; Right | |
194 | |
175
d097e10b383b
CHANGE: Draw a frame around the dive mode menu
heinrichsweikamp
parents:
134
diff
changeset
|
195 #DEFINE divemode_menu_item1_row .165 |
0 | 196 #DEFINE divemode_menu_item1_column .9 |
197 #DEFINE divemode_menu_item2_row divemode_menu_item1_row+.24 | |
198 #DEFINE divemode_menu_item2_column divemode_menu_item1_column | |
199 #DEFINE divemode_menu_item3_row divemode_menu_item2_row+.24 | |
200 #DEFINE divemode_menu_item3_column divemode_menu_item1_column | |
201 #DEFINE divemode_menu_item4_row divemode_menu_item1_row | |
175
d097e10b383b
CHANGE: Draw a frame around the dive mode menu
heinrichsweikamp
parents:
134
diff
changeset
|
202 #DEFINE divemode_menu_item4_column .89 |
0 | 203 #DEFINE divemode_menu_item5_row divemode_menu_item4_row+.24 |
204 #DEFINE divemode_menu_item5_column divemode_menu_item4_column | |
205 #DEFINE divemode_menu_item6_row divemode_menu_item5_row+.24 | |
206 #DEFINE divemode_menu_item6_column divemode_menu_item4_column | |
207 | |
208 #DEFINE dive_compass_mask_row decoplan_title_row | |
209 #DEFINE dive_compass_mask_column decoplan_title_column | |
250 | 210 #DEFINE dive_compass_head_column .62 |
211 #DEFINE dive_compass_head_row divemode_customview_row+.39 | |
255 | 212 #DEFINE dive_compass_ldir_column .5 |
213 #DEFINE dive_compass_rdir_column .140 | |
250 | 214 |
215 #DEFINE dive_compass_graph_row .101 | |
216 #DEFINE dive_compass_graph_height .33 | |
83 | 217 |
250 | 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 | |
83 | 225 |