Mercurial > public > hwos_code
annotate src/divemode.inc @ 32:413a1aa23acd
GF high lowest setting 60%
author | heinrichsweikamp |
---|---|
date | Mon, 22 Jul 2013 14:26:04 +0200 |
parents | 50c3e2c7ba7a |
children | 64976f1e0a1c |
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 | |
40 | |
41 #DEFINE divemode_mask_depth_row .0 | |
42 #DEFINE divemode_mask_depth_column .12 | |
43 #DEFINE divemode_mask_maxdepth_row .0 | |
44 #DEFINE divemode_mask_maxdepth_column .62 | |
45 #DEFINE divemode_mask_divetime_row .0 | |
46 #DEFINE divemode_mask_divetime_column .122 | |
47 | |
48 #DEFINE surface_apnoe_text_row .190 | |
49 #DEFINE surface_apnoe_text_column .30 | |
50 #DEFINE surface_time_apnoe_row .204 | |
51 #DEFINE surface_time_apnoe_column .15 | |
52 | |
53 #DEFINE last_max_apnoe_text_row .190 | |
54 #DEFINE last_max_apnoe_text_column .100 | |
55 #DEFINE apnoe_last_max_depth_row .204 | |
56 #DEFINE apnoe_last_max_depth_column .100 | |
57 | |
58 #DEFINE dive_temp_row .163 | |
59 #DEFINE dive_temp_column .0 | |
60 | |
61 ; TTS | |
62 #DEFINE tts_text_row .211 | |
63 #DEFINE tts_text_column .85 | |
64 #DEFINE tts_value_row .207 | |
65 #DEFINE tts_value_column .118 | |
66 | |
67 #DEFINE ndl_text_row tts_text_row | |
68 #DEFINE ndl_text_column tts_text_column | |
69 #DEFINE ndl_value_row tts_value_row | |
70 #DEFINE ndl_value_column tts_value_column | |
71 | |
72 #DEFINE active_gas_row .210 | |
73 #DEFINE active_gas_column .0 | |
74 #DEFINE active_dil_row .186 | |
75 #DEFINE active_dil_column .0 | |
76 | |
77 ; Warnings | |
78 #DEFINE warning_icon_row .55 | |
79 #DEFINE warning_icon_column .135 | |
80 #DEFINE warning1_row .50 | |
81 #DEFINE warning1_column .70 | |
82 #DEFINE warning2_row .74 | |
83 #DEFINE warning2_column warning1_column | |
84 #DEFINE warning_length .9 ; total string length | |
85 | |
86 #DEFINE velocity_text_row .76 | |
87 #DEFINE velocity_text_column .0 | |
88 | |
89 #DEFINE divemode_customview_row .101 ; Upper border | |
90 #DEFINE divemode_customview_column .0 | |
91 | |
92 #DEFINE dive_custom_hud_row divemode_customview_row+.1 | |
93 #DEFINE dive_custom_hud_column1 .10 | |
94 #DEFINE dive_custom_hud_column2 .65 | |
95 #DEFINE dive_custom_hud_column3 .120 | |
96 #DEFINE dive_hud_data_row divemode_customview_row+.16 | |
97 #DEFINE dive_hud_sensor1_column .6 | |
98 #DEFINE dive_hud_sensor2_column .62 | |
99 #DEFINE dive_hud_sensor3_column .118 | |
100 | |
101 ; Customview GF | |
102 #DEFINE dive_gf_text_row divemode_customview_row+.1 | |
103 #DEFINE dive_gf_column1 .8 | |
104 #DEFINE dive_gf_column2 .62 | |
105 #DEFINE dive_gf_column3 .115 | |
106 #DEFINE dive_gf_row divemode_customview_row+.18 | |
107 #DEFINE dive_gf_column .0 | |
108 #DEFINE dive_agf_row dive_gf_row | |
109 #DEFINE dive_agf_column .60 | |
110 #DEFINE dive_currentgf_row dive_gf_row | |
111 #DEFINE dive_currentgf_column .118 | |
112 | |
113 ; Customview clock/date, END/EAD and Tissues | |
114 #DEFINE dive_clock_row dive_hud_data_row | |
115 #DEFINE dive_clock_column .0 | |
116 #DEFINE dive_date_row dive_clock_row+.23 | |
117 #DEFINE dive_date_column dive_clock_column | |
118 #DEFINE dive_ead_row dive_hud_data_row | |
119 #DEFINE dive_ead_column .46 | |
120 #DEFINE dive_end_row dive_ead_row+.23 | |
121 #DEFINE dive_end_column dive_ead_column | |
122 | |
123 #DEFINE dive_tissue_N2_row dive_ead_row+.5 | |
124 #DEFINE dive_tissue_N2_column .105 | |
125 #DEFINE dive_tissue_He_row dive_end_row+.5 | |
126 #DEFINE dive_tissue_He_column dive_tissue_N2_column | |
127 #DEFINE tissue_diagram_top divemode_customview_row+.16 | |
128 #DEFINE tissue_diagram_bottom .160 | |
129 #DEFINE tissue_diagram_left .116 | |
130 #DEFINE tissue_diagram_frame_spacing .8 | |
131 | |
132 #DEFINE dive_custom_avr_stop_row dive_custom_hud_row | |
133 #DEFINE dive_custom_avr_stop_column1 .2 | |
134 #DEFINE dive_custom_avr_stop_column2 .57 | |
135 #DEFINE dive_custom_avr_stop_column3 .110 | |
136 #DEFINE dive_avr_stop_row dive_hud_data_row | |
137 #DEFINE dive_avr_stop_column1 .0 | |
138 #DEFINE dive_avr_stop_column2 .54 | |
139 #DEFINE dive_avr_stop_column3 .118 | |
140 | |
141 #DEFINE decostop_1st_stop_row .171 ; The big one... | |
142 #DEFINE decostop_1st_stop_column .82 ; The big one... | |
143 | |
144 #DEFINE decoplan_title_row .101 | |
145 #DEFINE decoplan_title_column .65 | |
146 | |
147 #DEFINE decostop_2nd_stop_row divemode_customview_row+.15 | |
148 #DEFINE decostop_2nd_stop_column .0 | |
149 #DEFINE decostop_3rd_stop_row divemode_customview_row+.39 | |
150 #DEFINE decostop_3rd_stop_column decostop_2nd_stop_column | |
151 #DEFINE decostop_4th_stop_row decostop_2nd_stop_row | |
152 #DEFINE decostop_4th_stop_column .56 | |
153 #DEFINE decostop_5th_stop_row decostop_3rd_stop_row | |
154 #DEFINE decostop_5th_stop_column decostop_4th_stop_column | |
155 #DEFINE decostop_6th_stop_row decostop_2nd_stop_row | |
156 #DEFINE decostop_6th_stop_column .112 | |
157 #DEFINE decostop_7th_stop_row decostop_3rd_stop_row | |
158 #DEFINE decostop_7th_stop_column decostop_6th_stop_column | |
159 | |
160 #DEFINE divemode_simtext_row .164 | |
161 #DEFINE divemode_simtext_column .32 | |
162 | |
163 ; Divemode menu | |
164 #DEFINE divemode_menu_row .164 ; Upper row | |
165 #DEFINE divemode_menu_lower .239 ; Lower border | |
166 #DEFINE divemode_menu_left .0 ; Left | |
167 #DEFINE divemode_menu_right .159 ; Right | |
168 | |
169 #DEFINE divemode_menu_item1_row .164 | |
170 #DEFINE divemode_menu_item1_column .9 | |
171 #DEFINE divemode_menu_item2_row divemode_menu_item1_row+.24 | |
172 #DEFINE divemode_menu_item2_column divemode_menu_item1_column | |
173 #DEFINE divemode_menu_item3_row divemode_menu_item2_row+.24 | |
174 #DEFINE divemode_menu_item3_column divemode_menu_item1_column | |
175 #DEFINE divemode_menu_item4_row divemode_menu_item1_row | |
176 #DEFINE divemode_menu_item4_column .90 | |
177 #DEFINE divemode_menu_item5_row divemode_menu_item4_row+.24 | |
178 #DEFINE divemode_menu_item5_column divemode_menu_item4_column | |
179 #DEFINE divemode_menu_item6_row divemode_menu_item5_row+.24 | |
180 #DEFINE divemode_menu_item6_column divemode_menu_item4_column | |
181 | |
182 #DEFINE dive_compass_mask_row decoplan_title_row | |
183 #DEFINE dive_compass_mask_column decoplan_title_column | |
29
50c3e2c7ba7a
adding cardinal (and ordinal) directions for the compass
heinrichsweikamp
parents:
11
diff
changeset
|
184 #DEFINE dive_compass_head_column .57 |
0 | 185 #DEFINE dive_compass_head_row divemode_customview_row+.25 |