comparison src/divemode.inc @ 0:11d4fc797f74

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