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
|
|
20 #DEFINE surf_clock_row .28
|
|
21 #DEFINE surf_clock_column .5
|
|
22 #DEFINE surf_date_row .10
|
|
23 #DEFINE surf_date_column surf_clock_column
|
|
24
|
|
25 #DEFINE batt_voltage_row .46
|
|
26 #DEFINE batt_voltage_column surf_clock_column
|
|
27 #DEFINE batt_percent_row batt_voltage_row
|
|
28 #DEFINE batt_percent_column .30
|
|
29
|
|
30 #DEFINE surf_decotype_row .60
|
|
31 #DEFINE surf_decotype_column .100
|
|
32
|
|
33 #DEFINE surf_desat_row .103
|
|
34 #DEFINE surf_desat_column .65
|
|
35 #DEFINE surf_nofly_row .128
|
|
36 #DEFINE surf_nofly_column .65
|
|
37
|
|
38 #DEFINE surf_warning1_column .40
|
|
39 #DEFINE surf_warning1_row .191
|
|
40 #DEFINE surf_warning2_column surf_warning1_column
|
|
41 #DEFINE surf_warning2_row surf_warning1_row+.24
|
|
42 #DEFINE surf_warning_length .11 ; total string length
|
|
43
|
|
44 #DEFINE surf_temp_row .185
|
|
45 #DEFINE surf_temp_column .112
|
|
46 #DEFINE surf_press_row .160
|
|
47 #DEFINE surf_press_column .98
|
|
48
|
|
49 #DEFINE surf_gaslist_row .66
|
|
50 #DEFINE surf_gaslist_column .2
|
|
51 #DEFINE surf_gaslist_spacing .24
|
|
52
|
|
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
|
|
62 #DEFINE surf_compass_head_row surf_customtext_row4-.5
|
|
63 #DEFINE surf_compass_head_column .18
|
|
64
|
|
65 #DEFINE surf_hud_sensor1_column .112
|
|
66 #DEFINE surf_hud_sensor1_row .87
|
|
67 #DEFINE surf_hud_sensor2_column surf_hud_sensor1_column
|
|
68 #DEFINE surf_hud_sensor2_row .111
|
|
69 #DEFINE surf_hud_sensor3_column surf_hud_sensor1_column
|
|
70 #DEFINE surf_hud_sensor3_row .135
|
|
71
|
|
72 #DEFINE surf_menu_sensor1_column .80
|
|
73 #DEFINE surf_menu_sensor1_row .73
|
|
74 #DEFINE surf_menu_sensor2_column surf_menu_sensor1_column
|
|
75 #DEFINE surf_menu_sensor2_row surf_menu_sensor1_row+.27*.1
|
|
76 #DEFINE surf_menu_sensor3_column surf_menu_sensor1_column
|
|
77 #DEFINE surf_menu_sensor3_row surf_menu_sensor1_row+.27*.2
|
|
78 #DEFINE surf_menu_sensor4_column surf_menu_sensor1_column
|
|
79 #DEFINE surf_menu_sensor4_row surf_menu_sensor1_row+.27*.3
|
|
80
|
|
81 #DEFINE surf_tissue_diagram_top .66
|
|
82 #DEFINE surf_tissue_diagram_bottom tissue_diagram_top+.64
|
|
83 #DEFINE surf_tissue_diagram_left .5
|
|
84 #DEFINE surf_tissue_diagram_right surf_decotype_column-.5
|
|
85 #DEFINE surf_tissue_N2_row surf_tissue_diagram_top+.1
|
|
86 #DEFINE surf_tissue_N2_column surf_tissue_diagram_left+.5
|
|
87 #DEFINE surf_tissue_He_row surf_tissue_diagram_top+.56
|
|
88 #DEFINE surf_tissue_He_column surf_tissue_N2_column
|