annotate src/surfmode.inc @ 646:5b7fe7777425

3.16 release
author heinrichs weikamp
date Thu, 14 Oct 2021 12:03:24 +0200
parents 4050675965ea
children 75e90cd0c2c3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
heinrichsweikamp
parents:
diff changeset
1 ;=============================================================================
heinrichsweikamp
parents:
diff changeset
2 ;
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
3 ; File surfmode.inc combined next generation V3.09.4
0
heinrichsweikamp
parents:
diff changeset
4 ;
heinrichsweikamp
parents:
diff changeset
5 ;
heinrichsweikamp
parents:
diff changeset
6 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved.
heinrichsweikamp
parents:
diff changeset
7 ;=============================================================================
heinrichsweikamp
parents:
diff changeset
8 ; HISTORY
heinrichsweikamp
parents:
diff changeset
9 ; 2011-08-07 : [mH] moving from OSTC code
heinrichsweikamp
parents:
diff changeset
10
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 582
diff changeset
11
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
12 extern surfloop
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 582
diff changeset
13 extern reset_timeout_surfmode
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
14 extern restart_timeout_time
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 582
diff changeset
15 extern housekeeping
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 582
diff changeset
16
0
heinrichsweikamp
parents:
diff changeset
17
heinrichsweikamp
parents:
diff changeset
18 ; Surfacemode/Homescreen layout:
heinrichsweikamp
parents:
diff changeset
19 ; row=0...239
heinrichsweikamp
parents:
diff changeset
20 ; column=0...159 (x2)
heinrichsweikamp
parents:
diff changeset
21
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
22 #DEFINE surf_clock_row .0
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
23 #DEFINE surf_clock_column .5
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
24 #DEFINE surf_date_row .25
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
25 #DEFINE surf_date_column .1
0
heinrichsweikamp
parents:
diff changeset
26
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
27 #DEFINE batt_voltage_row .8
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
28 #DEFINE batt_voltage_column .45
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
29 #DEFINE batt_percent_row .26
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
30 #DEFINE batt_percent_column .60
0
heinrichsweikamp
parents:
diff changeset
31
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
32 #DEFINE surf_desat_row .103
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
33 #DEFINE surf_desat_column .65
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
34 #DEFINE surf_nofly_row .128
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
35 #DEFINE surf_nofly_column .65
0
heinrichsweikamp
parents:
diff changeset
36
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
37 #DEFINE surf_warning1_column .40
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
38 #DEFINE surf_warning1_row .191
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
39 #DEFINE surf_warning2_column surf_warning1_column
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
40 #DEFINE surf_warning2_row surf_warning1_row+.24
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
41 #DEFINE surf_warning_length .11 ; total string length
0
heinrichsweikamp
parents:
diff changeset
42
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
43 #DEFINE surf_temp_row .185
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
44 #DEFINE surf_temp_column .120
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
45 #DEFINE surf_press_row .160
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
46 #DEFINE surf_press_column .98
0
heinrichsweikamp
parents:
diff changeset
47
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
48 #DEFINE surf_gaslist_row .66
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
49 #DEFINE surf_gaslist_column .2
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
50 #DEFINE surf_gaslist_spacing .24
0
heinrichsweikamp
parents:
diff changeset
51
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
52 #DEFINE surf_customview_title_row .52
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
53 #DEFINE surf_customview_title_column .15
188
ebc28381f17d NEW: Show Bailout Gas List in Surface mode (CCR Modes)
heinrichsweikamp
parents: 187
diff changeset
54
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
55 #DEFINE surf_customtext_row1 .66
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
56 #DEFINE surf_customtext_row2 surf_customtext_row1+.24
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
57 #DEFINE surf_customtext_row3 surf_customtext_row2+.24
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
58 #DEFINE surf_customtext_row4 surf_customtext_row3+.24
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
59 #DEFINE surf_customtext_row5 surf_customtext_row4+.24
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
60 #DEFINE surf_customtext_column .5
0
heinrichsweikamp
parents:
diff changeset
61
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
62 #DEFINE surf_compass_mask_row surf_customtext_row2
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
63 #DEFINE surf_compass_mask_column .10
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
64 #DEFINE surf_compass_head_row surf_customtext_row4-.8
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
65 #DEFINE surf_compass_head_column .10
0
heinrichsweikamp
parents:
diff changeset
66
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
67 #DEFINE surf_compass_bear_column .15
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
68 #DEFINE surf_compass_bear_row surf_customtext_row5
382
6f3530eb48f9 allow compass bearing on surface
heinrichsweikamp
parents: 300
diff changeset
69
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
70 #DEFINE surf_hud_sensor1_column .112
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
71 #DEFINE surf_hud_sensor1_row .87
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
72 #DEFINE surf_hud_sensor2_column surf_hud_sensor1_column
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
73 #DEFINE surf_hud_sensor2_row .111
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
74 #DEFINE surf_hud_sensor3_column surf_hud_sensor1_column
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
75 #DEFINE surf_hud_sensor3_row .135
0
heinrichsweikamp
parents:
diff changeset
76
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
77 #DEFINE surf_menu_sensor1_column .80
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
78 #DEFINE surf_menu_sensor1_row .60
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
79 #DEFINE surf_menu_sensor2_column surf_menu_sensor1_column
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
80 #DEFINE surf_menu_sensor2_row surf_menu_sensor1_row+.27*.1
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
81 #DEFINE surf_menu_sensor3_column surf_menu_sensor1_column
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
82 #DEFINE surf_menu_sensor3_row surf_menu_sensor1_row+.27*.2
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
83 #DEFINE surf_menu_sensor4_column surf_menu_sensor1_column
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
84 #DEFINE surf_menu_sensor4_row surf_menu_sensor1_row-.27*.1
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
85 #DEFINE surf_menu2_sensor1_row .47
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
86 #DEFINE surf_menu2_sensor2_row surf_menu2_sensor1_row+.27*.1
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
87 #DEFINE surf_menu2_sensor3_row surf_menu2_sensor1_row+.27*.2
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
88 #DEFINE surf_menu2_ambient_row surf_menu2_sensor1_row+.27*.4
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
89 #DEFINE surf_menu2_ambient_column .95
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
90
535
cf68fe0c3002 NEW: Show a warning for each sensor if the sensor is end-of-life after calibration (Less then 8mV in Air at sea level)
heinrichsweikamp
parents: 530
diff changeset
91 #DEFINE surf_mV_sensor_status_column .145
0
heinrichsweikamp
parents:
diff changeset
92
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
93 #DEFINE surf_tissue_diagram_top .66
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
94 #DEFINE surf_tissue_diagram_bottom surf_tissue_diagram_top+.117 ; 183
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
95 #DEFINE surf_tissue_diagram_left .5
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
96 #DEFINE surf_tissue_diagram_right surf_decotype_column-.5
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
97 #DEFINE surf_tissue_N2_row surf_tissue_diagram_top+.1
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
98 #DEFINE surf_tissue_N2_column surf_tissue_diagram_left+.5
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
99 #DEFINE surf_tissue_He_row surf_tissue_diagram_top+.56
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
100 #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
101
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
102 #DEFINE surf_decotype_row .60
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
103 #DEFINE surf_decotype_column .100
234
57155164faad Show OSTC2-like active gas boxes in surface mode
heinrichsweikamp
parents: 232
diff changeset
104
57155164faad Show OSTC2-like active gas boxes in surface mode
heinrichsweikamp
parents: 232
diff changeset
105 ; OSTC2-style start gas and boxes
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
106 #DEFINE surf_decotype_boxes_top surf_decotype_row+.30+.25-.1
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
107 #DEFINE surf_decotype_boxes_bottom surf_decotype_boxes_top+.22
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
108 #DEFINE surf_decotype_boxes_left1 surf_decotype_column+.5
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
109 #DEFINE surf_decotype_boxes_left2 surf_decotype_boxes_left1+.9
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
110 #DEFINE surf_decotype_boxes_left3 surf_decotype_boxes_left1+.18
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
111 #DEFINE surf_decotype_boxes_left4 surf_decotype_boxes_left1+.27
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
112 #DEFINE surf_decotype_boxes_left5 surf_decotype_boxes_left1+.36
234
57155164faad Show OSTC2-like active gas boxes in surface mode
heinrichsweikamp
parents: 232
diff changeset
113
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
114 #DEFINE surf_mV_sensor_column .5
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
115 #DEFINE surf_mV_sensor1_row .90
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
116 #DEFINE surf_mV_sensor2_row surf_mV_sensor1_row+.24
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 560
diff changeset
117 #DEFINE surf_mV_sensor3_row surf_mV_sensor2_row+.24