Mercurial > public > hwos_code
comparison src/surfmode.inc @ 582:b455b31ce022
work on 2.97 stable
author | heinrichsweikamp |
---|---|
date | Mon, 26 Feb 2018 16:40:28 +0100 |
parents | b7eb98dbd800 |
children | c40025d8e750 |
comparison
equal
deleted
inserted
replaced
581:f5de1ff88814 | 582:b455b31ce022 |
---|---|
1 ;============================================================================= | 1 ;============================================================================= |
2 ; | 2 ; |
3 ; File surfmode.inc REFACTORED VERSION V2.92 | 3 ; File surfmode.inc REFACTORED VERSION V2.97 |
4 ; | 4 ; |
5 ; | 5 ; |
6 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved. | 6 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved. |
7 ;============================================================================= | 7 ;============================================================================= |
8 ; HISTORY | 8 ; HISTORY |
9 ; 2011-08-07 : [mH] moving from OSTC code | 9 ; 2011-08-07 : [mH] moving from OSTC code |
10 | 10 |
11 extern surfloop | 11 extern surfloop |
12 ; extern calc_deko_surfmode DELETED - not used any more ## no fly | 12 extern timeout_surfmode |
13 extern timeout_surfmode | 13 extern timeout_testmode |
14 extern timeout_testmode | |
15 | 14 |
16 ; Surfacemode/Homescreen layout: | 15 ; Surfacemode/Homescreen layout: |
17 ; row=0...239 | 16 ; row=0...239 |
18 ; column=0...159 (x2) | 17 ; column=0...159 (x2) |
19 | 18 |
20 #DEFINE surf_clock_row .0 | 19 #DEFINE surf_clock_row .0 |
21 #DEFINE surf_clock_column .5 | 20 #DEFINE surf_clock_column .5 |
22 #DEFINE surf_date_row .25 | 21 #DEFINE surf_date_row .25 |
23 #DEFINE surf_date_column .1 | 22 #DEFINE surf_date_column .1 |
24 | 23 |
25 #DEFINE batt_voltage_row .8 | 24 #DEFINE batt_voltage_row .8 |
26 #DEFINE batt_voltage_column .45 | 25 #DEFINE batt_voltage_column .45 |
27 #DEFINE batt_percent_row .26 | 26 #DEFINE batt_percent_row .26 |
28 #DEFINE batt_percent_column .60 | 27 #DEFINE batt_percent_column .60 |
29 | 28 |
30 #DEFINE surf_desat_row .103 | 29 #DEFINE surf_desat_row .103 |
31 #DEFINE surf_desat_column .65 | 30 #DEFINE surf_desat_column .65 |
32 #DEFINE surf_nofly_row .128 | 31 #DEFINE surf_nofly_row .128 |
33 #DEFINE surf_nofly_column .65 | 32 #DEFINE surf_nofly_column .65 |
34 | 33 |
35 #DEFINE surf_warning1_column .40 | 34 #DEFINE surf_warning1_column .40 |
36 #DEFINE surf_warning1_row .191 | 35 #DEFINE surf_warning1_row .191 |
37 #DEFINE surf_warning2_column surf_warning1_column | 36 #DEFINE surf_warning2_column surf_warning1_column |
38 #DEFINE surf_warning2_row surf_warning1_row+.24 | 37 #DEFINE surf_warning2_row surf_warning1_row+.24 |
39 #DEFINE surf_warning_length .11 ; total string length | 38 #DEFINE surf_warning_length .11 ; total string length |
40 | 39 |
41 #DEFINE surf_temp_row .185 | 40 #DEFINE surf_temp_row .185 |
42 #DEFINE surf_temp_column .120 ; CHANGED - clear overlapp with warning text area ## temp | 41 #DEFINE surf_temp_column .120 |
43 #DEFINE surf_press_row .160 | 42 #DEFINE surf_press_row .160 |
44 #DEFINE surf_press_column .98 | 43 #DEFINE surf_press_column .98 |
45 | 44 |
46 #DEFINE surf_gaslist_row .66 | 45 #DEFINE surf_gaslist_row .66 |
47 #DEFINE surf_gaslist_column .2 | 46 #DEFINE surf_gaslist_column .2 |
48 #DEFINE surf_gaslist_spacing .24 | 47 #DEFINE surf_gaslist_spacing .24 |
49 | 48 |
50 #DEFINE surf_customview_title_row .52 | 49 #DEFINE surf_customview_title_row .52 |
51 #DEFINE surf_customview_title_column .15 | 50 #DEFINE surf_customview_title_column .15 |
52 | 51 |
53 #DEFINE surf_customtext_row1 .66 | 52 #DEFINE surf_customtext_row1 .66 |
54 #DEFINE surf_customtext_row2 surf_customtext_row1+.24 | 53 #DEFINE surf_customtext_row2 surf_customtext_row1+.24 |
55 #DEFINE surf_customtext_row3 surf_customtext_row2+.24 | 54 #DEFINE surf_customtext_row3 surf_customtext_row2+.24 |
56 #DEFINE surf_customtext_row4 surf_customtext_row3+.24 | 55 #DEFINE surf_customtext_row4 surf_customtext_row3+.24 |
57 #DEFINE surf_customtext_row5 surf_customtext_row4+.24 | 56 #DEFINE surf_customtext_row5 surf_customtext_row4+.24 |
58 #DEFINE surf_customtext_column .5 | 57 #DEFINE surf_customtext_column .5 |
59 | 58 |
60 #DEFINE surf_compass_mask_row surf_customtext_row2 | 59 #DEFINE surf_compass_mask_row surf_customtext_row2 |
61 #DEFINE surf_compass_mask_column .10 | 60 #DEFINE surf_compass_mask_column .10 |
62 #DEFINE surf_compass_head_row surf_customtext_row4-.8 | 61 #DEFINE surf_compass_head_row surf_customtext_row4-.8 |
63 #DEFINE surf_compass_head_column .10 | 62 #DEFINE surf_compass_head_column .10 |
64 | 63 |
65 #DEFINE surf_compass_bear_column .15 | 64 #DEFINE surf_compass_bear_column .15 |
66 #DEFINE surf_compass_bear_row surf_customtext_row5 | 65 #DEFINE surf_compass_bear_row surf_customtext_row5 |
67 | 66 |
68 #DEFINE surf_hud_sensor1_column .112 | 67 #DEFINE surf_hud_sensor1_column .112 |
69 #DEFINE surf_hud_sensor1_row .87 | 68 #DEFINE surf_hud_sensor1_row .87 |
70 #DEFINE surf_hud_sensor2_column surf_hud_sensor1_column | 69 #DEFINE surf_hud_sensor2_column surf_hud_sensor1_column |
71 #DEFINE surf_hud_sensor2_row .111 | 70 #DEFINE surf_hud_sensor2_row .111 |
72 #DEFINE surf_hud_sensor3_column surf_hud_sensor1_column | 71 #DEFINE surf_hud_sensor3_column surf_hud_sensor1_column |
73 #DEFINE surf_hud_sensor3_row .135 | 72 #DEFINE surf_hud_sensor3_row .135 |
74 | 73 |
75 #DEFINE surf_menu_sensor1_column .80 | 74 #DEFINE surf_menu_sensor1_column .80 |
76 #DEFINE surf_menu_sensor1_row .60 | 75 #DEFINE surf_menu_sensor1_row .60 |
77 #DEFINE surf_menu_sensor2_column surf_menu_sensor1_column | 76 #DEFINE surf_menu_sensor2_column surf_menu_sensor1_column |
78 #DEFINE surf_menu_sensor2_row surf_menu_sensor1_row+.27*.1 | 77 #DEFINE surf_menu_sensor2_row surf_menu_sensor1_row+.27*.1 |
79 #DEFINE surf_menu_sensor3_column surf_menu_sensor1_column | 78 #DEFINE surf_menu_sensor3_column surf_menu_sensor1_column |
80 #DEFINE surf_menu_sensor3_row surf_menu_sensor1_row+.27*.2 | 79 #DEFINE surf_menu_sensor3_row surf_menu_sensor1_row+.27*.2 |
81 #DEFINE surf_menu_sensor4_column surf_menu_sensor1_column | 80 #DEFINE surf_menu_sensor4_column surf_menu_sensor1_column |
82 #DEFINE surf_menu_sensor4_row surf_menu_sensor1_row-.27*.1 | 81 #DEFINE surf_menu_sensor4_row surf_menu_sensor1_row-.27*.1 |
83 #DEFINE surf_menu2_sensor1_row .47 | 82 #DEFINE surf_menu2_sensor1_row .47 |
84 #DEFINE surf_menu2_sensor2_row surf_menu2_sensor1_row+.27*.1 | 83 #DEFINE surf_menu2_sensor2_row surf_menu2_sensor1_row+.27*.1 |
85 #DEFINE surf_menu2_sensor3_row surf_menu2_sensor1_row+.27*.2 | 84 #DEFINE surf_menu2_sensor3_row surf_menu2_sensor1_row+.27*.2 |
86 #DEFINE surf_menu2_ambient_row surf_menu2_sensor1_row+.27*.4 | 85 #DEFINE surf_menu2_ambient_row surf_menu2_sensor1_row+.27*.4 |
87 #DEFINE surf_menu2_ambient_column .95 | 86 #DEFINE surf_menu2_ambient_column .95 |
88 | 87 |
89 #DEFINE surf_mV_sensor_status_column .145 | 88 #DEFINE surf_mV_sensor_status_column .145 |
90 | 89 |
91 #DEFINE surf_tissue_diagram_top .66 | 90 #DEFINE surf_tissue_diagram_top .66 |
92 #DEFINE surf_tissue_diagram_bottom surf_tissue_diagram_top+.117 ; 183 | 91 #DEFINE surf_tissue_diagram_bottom surf_tissue_diagram_top+.117 ; 183 |
93 #DEFINE surf_tissue_diagram_left .5 | 92 #DEFINE surf_tissue_diagram_left .5 |
94 #DEFINE surf_tissue_diagram_right surf_decotype_column-.5 | 93 #DEFINE surf_tissue_diagram_right surf_decotype_column-.5 |
95 #DEFINE surf_tissue_N2_row surf_tissue_diagram_top+.1 | 94 #DEFINE surf_tissue_N2_row surf_tissue_diagram_top+.1 |
96 #DEFINE surf_tissue_N2_column surf_tissue_diagram_left+.5 | 95 #DEFINE surf_tissue_N2_column surf_tissue_diagram_left+.5 |
97 #DEFINE surf_tissue_He_row surf_tissue_diagram_top+.56 | 96 #DEFINE surf_tissue_He_row surf_tissue_diagram_top+.56 |
98 #DEFINE surf_tissue_He_column surf_tissue_N2_column | 97 #DEFINE surf_tissue_He_column surf_tissue_N2_column |
99 | 98 |
100 #DEFINE surf_decotype_row .60 | 99 #DEFINE surf_decotype_row .60 |
101 #DEFINE surf_decotype_column .100 | 100 #DEFINE surf_decotype_column .100 |
102 | 101 |
103 ; OSTC2-style start gas and boxes | 102 ; OSTC2-style start gas and boxes |
104 #DEFINE surf_decotype_boxes_top surf_decotype_row+.30+.25-.1 | 103 #DEFINE surf_decotype_boxes_top surf_decotype_row+.30+.25-.1 |
105 #DEFINE surf_decotype_boxes_bottom surf_decotype_boxes_top+.22 | 104 #DEFINE surf_decotype_boxes_bottom surf_decotype_boxes_top+.22 |
106 #DEFINE surf_decotype_boxes_left1 surf_decotype_column+.5 | 105 #DEFINE surf_decotype_boxes_left1 surf_decotype_column+.5 |
107 #DEFINE surf_decotype_boxes_left2 surf_decotype_boxes_left1+.9 | 106 #DEFINE surf_decotype_boxes_left2 surf_decotype_boxes_left1+.9 |
108 #DEFINE surf_decotype_boxes_left3 surf_decotype_boxes_left1+.18 | 107 #DEFINE surf_decotype_boxes_left3 surf_decotype_boxes_left1+.18 |
109 #DEFINE surf_decotype_boxes_left4 surf_decotype_boxes_left1+.27 | 108 #DEFINE surf_decotype_boxes_left4 surf_decotype_boxes_left1+.27 |
110 #DEFINE surf_decotype_boxes_left5 surf_decotype_boxes_left1+.36 | 109 #DEFINE surf_decotype_boxes_left5 surf_decotype_boxes_left1+.36 |
111 | |
112 #DEFINE surf_mV_sensor_column .5 | |
113 #DEFINE surf_mV_sensor1_row .90 | |
114 #DEFINE surf_mV_sensor2_row surf_mV_sensor1_row+.24 | |
115 #DEFINE surf_mV_sensor3_row surf_mV_sensor2_row+.24 | |
116 | 110 |
111 #DEFINE surf_mV_sensor_column .5 | |
112 #DEFINE surf_mV_sensor1_row .90 | |
113 #DEFINE surf_mV_sensor2_row surf_mV_sensor1_row+.24 | |
114 #DEFINE surf_mV_sensor3_row surf_mV_sensor2_row+.24 |