Mercurial > public > hwos_code
annotate src/divemode.inc @ 118:abd30446e1cd
show heading with leading zeros
author | heinrichsweikamp |
---|---|
date | Fri, 27 Jun 2014 10:18:41 +0200 |
parents | 223579e905c3 |
children | d076e9c02438 |
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 | |
44 #DEFINE total_apnoe_text_column .95 | |
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 | |
66 #DEFINE dive_temp_column .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 | |
80 #DEFINE active_gas_column .0 | |
81 #DEFINE active_dil_row .186 | |
82 #DEFINE active_dil_column .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 | |
108 ; Customview GF | |
109 #DEFINE dive_gf_text_row divemode_customview_row+.1 | |
110 #DEFINE dive_gf_column1 .8 | |
111 #DEFINE dive_gf_column2 .62 | |
112 #DEFINE dive_gf_column3 .115 | |
113 #DEFINE dive_gf_row divemode_customview_row+.18 | |
114 #DEFINE dive_gf_column .0 | |
115 #DEFINE dive_agf_row dive_gf_row | |
116 #DEFINE dive_agf_column .60 | |
117 #DEFINE dive_currentgf_row dive_gf_row | |
118 #DEFINE dive_currentgf_column .118 | |
119 | |
53
2825f1d2262f
NEW: Dynamic Gaslist in OC mode (Divemode, Customview 7)
heinrichsweikamp
parents:
38
diff
changeset
|
120 ; Customview Dynamic Gaslist |
2825f1d2262f
NEW: Dynamic Gaslist in OC mode (Divemode, Customview 7)
heinrichsweikamp
parents:
38
diff
changeset
|
121 #DEFINE dive_custom_dyn_mask_column .59 |
2825f1d2262f
NEW: Dynamic Gaslist in OC mode (Divemode, Customview 7)
heinrichsweikamp
parents:
38
diff
changeset
|
122 #DEFINE dive_custom_dyn_mask_row decoplan_title_row |
2825f1d2262f
NEW: Dynamic Gaslist in OC mode (Divemode, Customview 7)
heinrichsweikamp
parents:
38
diff
changeset
|
123 #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
|
124 #DEFINE dive_custom_dyn_mask_column1 .0 |
2825f1d2262f
NEW: Dynamic Gaslist in OC mode (Divemode, Customview 7)
heinrichsweikamp
parents:
38
diff
changeset
|
125 #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
|
126 #DEFINE dive_custom_dyn_mask_column2 .80 |
2825f1d2262f
NEW: Dynamic Gaslist in OC mode (Divemode, Customview 7)
heinrichsweikamp
parents:
38
diff
changeset
|
127 |
0 | 128 ; Customview clock/date, END/EAD and Tissues |
129 #DEFINE dive_clock_row dive_hud_data_row | |
130 #DEFINE dive_clock_column .0 | |
102
37275e0fa7f5
NEW: Show End-of-Dive time together with clock during deco
heinrichsweikamp
parents:
83
diff
changeset
|
131 #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
|
132 #DEFINE dive_endtime_column dive_clock_column |
0 | 133 #DEFINE dive_ead_row dive_hud_data_row |
134 #DEFINE dive_ead_column .46 | |
135 #DEFINE dive_end_row dive_ead_row+.23 | |
136 #DEFINE dive_end_column dive_ead_column | |
137 | |
138 #DEFINE dive_tissue_N2_row dive_ead_row+.5 | |
139 #DEFINE dive_tissue_N2_column .105 | |
140 #DEFINE dive_tissue_He_row dive_end_row+.5 | |
141 #DEFINE dive_tissue_He_column dive_tissue_N2_column | |
142 #DEFINE tissue_diagram_top divemode_customview_row+.16 | |
143 #DEFINE tissue_diagram_bottom .160 | |
144 #DEFINE tissue_diagram_left .116 | |
145 #DEFINE tissue_diagram_frame_spacing .8 | |
146 | |
147 #DEFINE dive_custom_avr_stop_row dive_custom_hud_row | |
148 #DEFINE dive_custom_avr_stop_column1 .2 | |
149 #DEFINE dive_custom_avr_stop_column2 .57 | |
150 #DEFINE dive_custom_avr_stop_column3 .110 | |
151 #DEFINE dive_avr_stop_row dive_hud_data_row | |
152 #DEFINE dive_avr_stop_column1 .0 | |
153 #DEFINE dive_avr_stop_column2 .54 | |
154 #DEFINE dive_avr_stop_column3 .118 | |
155 | |
104
223579e905c3
Show a Safety Stop if enabled (Menu "Deco Parameters")
heinrichsweikamp
parents:
102
diff
changeset
|
156 #DEFINE decostop_1st_stop_row .171 ; In medium font... |
223579e905c3
Show a Safety Stop if enabled (Menu "Deco Parameters")
heinrichsweikamp
parents:
102
diff
changeset
|
157 #DEFINE decostop_1st_stop_column .82 |
223579e905c3
Show a Safety Stop if enabled (Menu "Deco Parameters")
heinrichsweikamp
parents:
102
diff
changeset
|
158 #DEFINE safetystop_row .171 ; In medium font... |
223579e905c3
Show a Safety Stop if enabled (Menu "Deco Parameters")
heinrichsweikamp
parents:
102
diff
changeset
|
159 #DEFINE safetystop_column .105 |
0 | 160 |
161 #DEFINE decoplan_title_row .101 | |
162 #DEFINE decoplan_title_column .65 | |
163 | |
164 #DEFINE decostop_2nd_stop_row divemode_customview_row+.15 | |
165 #DEFINE decostop_2nd_stop_column .0 | |
166 #DEFINE decostop_3rd_stop_row divemode_customview_row+.39 | |
167 #DEFINE decostop_3rd_stop_column decostop_2nd_stop_column | |
168 #DEFINE decostop_4th_stop_row decostop_2nd_stop_row | |
169 #DEFINE decostop_4th_stop_column .56 | |
170 #DEFINE decostop_5th_stop_row decostop_3rd_stop_row | |
171 #DEFINE decostop_5th_stop_column decostop_4th_stop_column | |
172 #DEFINE decostop_6th_stop_row decostop_2nd_stop_row | |
173 #DEFINE decostop_6th_stop_column .112 | |
174 #DEFINE decostop_7th_stop_row decostop_3rd_stop_row | |
175 #DEFINE decostop_7th_stop_column decostop_6th_stop_column | |
176 | |
177 #DEFINE divemode_simtext_row .164 | |
178 #DEFINE divemode_simtext_column .32 | |
179 | |
180 ; Divemode menu | |
181 #DEFINE divemode_menu_row .164 ; Upper row | |
182 #DEFINE divemode_menu_lower .239 ; Lower border | |
183 #DEFINE divemode_menu_left .0 ; Left | |
184 #DEFINE divemode_menu_right .159 ; Right | |
185 | |
186 #DEFINE divemode_menu_item1_row .164 | |
187 #DEFINE divemode_menu_item1_column .9 | |
188 #DEFINE divemode_menu_item2_row divemode_menu_item1_row+.24 | |
189 #DEFINE divemode_menu_item2_column divemode_menu_item1_column | |
190 #DEFINE divemode_menu_item3_row divemode_menu_item2_row+.24 | |
191 #DEFINE divemode_menu_item3_column divemode_menu_item1_column | |
192 #DEFINE divemode_menu_item4_row divemode_menu_item1_row | |
193 #DEFINE divemode_menu_item4_column .90 | |
194 #DEFINE divemode_menu_item5_row divemode_menu_item4_row+.24 | |
195 #DEFINE divemode_menu_item5_column divemode_menu_item4_column | |
196 #DEFINE divemode_menu_item6_row divemode_menu_item5_row+.24 | |
197 #DEFINE divemode_menu_item6_column divemode_menu_item4_column | |
198 | |
199 #DEFINE dive_compass_mask_row decoplan_title_row | |
200 #DEFINE dive_compass_mask_column decoplan_title_column | |
29
50c3e2c7ba7a
adding cardinal (and ordinal) directions for the compass
heinrichsweikamp
parents:
11
diff
changeset
|
201 #DEFINE dive_compass_head_column .57 |
0 | 202 #DEFINE dive_compass_head_row divemode_customview_row+.25 |
83 | 203 |
204 #DEFINE dive_compass_graph_row .102 | |
205 #DEFINE dive_compass_graph_height .20 | |
206 #DEFINE dive_compass_graph_width .2 | |
207 |