Mercurial > public > hwos_code
annotate src/surfmode.inc @ 443:84bb5cbebe57
minor
author | heinrichsweikamp |
---|---|
date | Tue, 26 Jul 2016 12:25:02 +0200 |
parents | 6f3530eb48f9 |
children | 44b8a826b314 |
rev | line source |
---|---|
0 | 1 ;============================================================================= |
2 ; | |
3 ; File surfmode.inc | |
4 ; | |
5 ; | |
6 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved. | |
7 ;============================================================================= | |
8 ; HISTORY | |
9 ; 2011-08-07 : [mH] moving from OSTC code | |
10 | |
11 extern surfloop | |
12 extern calc_deko_surfmode | |
13 extern timeout_surfmode | |
14 extern timeout_testmode | |
15 | |
16 ; Surfacemode/Homescreen layout: | |
17 ; row=0...239 | |
18 ; column=0...159 (x2) | |
19 | |
48 | 20 #DEFINE surf_clock_row .0 |
21 #DEFINE surf_clock_column .11 | |
22 #DEFINE surf_date_row .25 | |
213 | 23 #DEFINE surf_date_column .1 |
0 | 24 |
48 | 25 #DEFINE batt_voltage_row .8 |
26 #DEFINE batt_voltage_column .60 | |
27 #DEFINE batt_percent_row .26 | |
28 #DEFINE batt_percent_column .60 | |
0 | 29 |
30 #DEFINE surf_desat_row .103 | |
31 #DEFINE surf_desat_column .65 | |
32 #DEFINE surf_nofly_row .128 | |
33 #DEFINE surf_nofly_column .65 | |
34 | |
35 #DEFINE surf_warning1_column .40 | |
36 #DEFINE surf_warning1_row .191 | |
37 #DEFINE surf_warning2_column surf_warning1_column | |
38 #DEFINE surf_warning2_row surf_warning1_row+.24 | |
39 #DEFINE surf_warning_length .11 ; total string length | |
40 | |
41 #DEFINE surf_temp_row .185 | |
42 #DEFINE surf_temp_column .112 | |
43 #DEFINE surf_press_row .160 | |
44 #DEFINE surf_press_column .98 | |
45 | |
46 #DEFINE surf_gaslist_row .66 | |
47 #DEFINE surf_gaslist_column .2 | |
48 #DEFINE surf_gaslist_spacing .24 | |
49 | |
188
ebc28381f17d
NEW: Show Bailout Gas List in Surface mode (CCR Modes)
heinrichsweikamp
parents:
187
diff
changeset
|
50 #DEFINE surf_customview_title_row .52 |
ebc28381f17d
NEW: Show Bailout Gas List in Surface mode (CCR Modes)
heinrichsweikamp
parents:
187
diff
changeset
|
51 #DEFINE surf_customview_title_column .15 |
ebc28381f17d
NEW: Show Bailout Gas List in Surface mode (CCR Modes)
heinrichsweikamp
parents:
187
diff
changeset
|
52 |
0 | 53 #DEFINE surf_customtext_row1 .66 |
54 #DEFINE surf_customtext_row2 surf_customtext_row1+.24 | |
55 #DEFINE surf_customtext_row3 surf_customtext_row2+.24 | |
56 #DEFINE surf_customtext_row4 surf_customtext_row3+.24 | |
57 #DEFINE surf_customtext_row5 surf_customtext_row4+.24 | |
58 #DEFINE surf_customtext_column .5 | |
59 | |
60 #DEFINE surf_compass_mask_row surf_customtext_row2 | |
61 #DEFINE surf_compass_mask_column .10 | |
382 | 62 #DEFINE surf_compass_head_row surf_customtext_row4-.8 |
29
50c3e2c7ba7a
adding cardinal (and ordinal) directions for the compass
heinrichsweikamp
parents:
0
diff
changeset
|
63 #DEFINE surf_compass_head_column .10 |
0 | 64 |
382 | 65 #DEFINE surf_compass_bear_column .15 |
66 #DEFINE surf_compass_bear_row surf_customtext_row5 | |
67 | |
0 | 68 #DEFINE surf_hud_sensor1_column .112 |
69 #DEFINE surf_hud_sensor1_row .87 | |
70 #DEFINE surf_hud_sensor2_column surf_hud_sensor1_column | |
71 #DEFINE surf_hud_sensor2_row .111 | |
72 #DEFINE surf_hud_sensor3_column surf_hud_sensor1_column | |
73 #DEFINE surf_hud_sensor3_row .135 | |
74 | |
75 #DEFINE surf_menu_sensor1_column .80 | |
145
e3ac5b2021bc
NEW: Setpoint-Fallback option for external O2 sensor failure
heinrichsweikamp
parents:
113
diff
changeset
|
76 #DEFINE surf_menu_sensor1_row .60 |
0 | 77 #DEFINE surf_menu_sensor2_column surf_menu_sensor1_column |
78 #DEFINE surf_menu_sensor2_row surf_menu_sensor1_row+.27*.1 | |
79 #DEFINE surf_menu_sensor3_column surf_menu_sensor1_column | |
80 #DEFINE surf_menu_sensor3_row surf_menu_sensor1_row+.27*.2 | |
81 #DEFINE surf_menu_sensor4_column surf_menu_sensor1_column | |
145
e3ac5b2021bc
NEW: Setpoint-Fallback option for external O2 sensor failure
heinrichsweikamp
parents:
113
diff
changeset
|
82 #DEFINE surf_menu_sensor4_row surf_menu_sensor1_row-.27*.1 |
113 | 83 #DEFINE surf_menu2_sensor1_row .47 |
84 #DEFINE surf_menu2_sensor2_row surf_menu2_sensor1_row+.27*.1 | |
85 #DEFINE surf_menu2_sensor3_row surf_menu2_sensor1_row+.27*.2 | |
187
669b5d00706d
CHANGE: Longer timeout (4 min) for calibration menu
heinrichsweikamp
parents:
145
diff
changeset
|
86 #DEFINE surf_menu2_ambient_row surf_menu2_sensor1_row+.27*.4 |
669b5d00706d
CHANGE: Longer timeout (4 min) for calibration menu
heinrichsweikamp
parents:
145
diff
changeset
|
87 #DEFINE surf_menu2_ambient_column .95 |
0 | 88 |
89 #DEFINE surf_tissue_diagram_top .66 | |
300
5ad479f2a868
Merged Screen layout mod #1 into Screen layout work #3
Janos Kovacs <kovjanos@gmail.com>
parents:
234
diff
changeset
|
90 #DEFINE surf_tissue_diagram_bottom surf_tissue_diagram_top+.117 ; 183 |
0 | 91 #DEFINE surf_tissue_diagram_left .5 |
92 #DEFINE surf_tissue_diagram_right surf_decotype_column-.5 | |
93 #DEFINE surf_tissue_N2_row surf_tissue_diagram_top+.1 | |
94 #DEFINE surf_tissue_N2_column surf_tissue_diagram_left+.5 | |
95 #DEFINE surf_tissue_He_row surf_tissue_diagram_top+.56 | |
96 #DEFINE surf_tissue_He_column surf_tissue_N2_column | |
234
57155164faad
Show OSTC2-like active gas boxes in surface mode
heinrichsweikamp
parents:
232
diff
changeset
|
97 |
57155164faad
Show OSTC2-like active gas boxes in surface mode
heinrichsweikamp
parents:
232
diff
changeset
|
98 #DEFINE surf_decotype_row .60 |
57155164faad
Show OSTC2-like active gas boxes in surface mode
heinrichsweikamp
parents:
232
diff
changeset
|
99 #DEFINE surf_decotype_column .100 |
57155164faad
Show OSTC2-like active gas boxes in surface mode
heinrichsweikamp
parents:
232
diff
changeset
|
100 |
57155164faad
Show OSTC2-like active gas boxes in surface mode
heinrichsweikamp
parents:
232
diff
changeset
|
101 ; OSTC2-style start gas and boxes |
57155164faad
Show OSTC2-like active gas boxes in surface mode
heinrichsweikamp
parents:
232
diff
changeset
|
102 #DEFINE surf_decotype_boxes_top surf_decotype_row+.30+.25-.1 |
57155164faad
Show OSTC2-like active gas boxes in surface mode
heinrichsweikamp
parents:
232
diff
changeset
|
103 #DEFINE surf_decotype_boxes_bottom surf_decotype_boxes_top+.22 |
57155164faad
Show OSTC2-like active gas boxes in surface mode
heinrichsweikamp
parents:
232
diff
changeset
|
104 #DEFINE surf_decotype_boxes_left1 surf_decotype_column+.5 |
57155164faad
Show OSTC2-like active gas boxes in surface mode
heinrichsweikamp
parents:
232
diff
changeset
|
105 #DEFINE surf_decotype_boxes_left2 surf_decotype_boxes_left1+.9 |
57155164faad
Show OSTC2-like active gas boxes in surface mode
heinrichsweikamp
parents:
232
diff
changeset
|
106 #DEFINE surf_decotype_boxes_left3 surf_decotype_boxes_left1+.18 |
57155164faad
Show OSTC2-like active gas boxes in surface mode
heinrichsweikamp
parents:
232
diff
changeset
|
107 #DEFINE surf_decotype_boxes_left4 surf_decotype_boxes_left1+.27 |
57155164faad
Show OSTC2-like active gas boxes in surface mode
heinrichsweikamp
parents:
232
diff
changeset
|
108 #DEFINE surf_decotype_boxes_left5 surf_decotype_boxes_left1+.36 |
57155164faad
Show OSTC2-like active gas boxes in surface mode
heinrichsweikamp
parents:
232
diff
changeset
|
109 |