Mercurial > public > hwos_code
annotate src/surfmode.inc @ 651:682c514c53c0
3.21 release preparations
author | heinrichsweikamp |
---|---|
date | Fri, 14 Apr 2023 09:00:19 +0200 |
parents | 4050675965ea |
children | 75e90cd0c2c3 |
rev | line source |
---|---|
0 | 1 ;============================================================================= |
2 ; | |
634 | 3 ; File surfmode.inc combined next generation V3.09.4 |
0 | 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 | |
623 | 11 |
582 | 12 extern surfloop |
623 | 13 extern reset_timeout_surfmode |
634 | 14 extern restart_timeout_time |
623 | 15 extern housekeeping |
16 | |
0 | 17 |
18 ; Surfacemode/Homescreen layout: | |
19 ; row=0...239 | |
20 ; column=0...159 (x2) | |
21 | |
582 | 22 #DEFINE surf_clock_row .0 |
23 #DEFINE surf_clock_column .5 | |
24 #DEFINE surf_date_row .25 | |
25 #DEFINE surf_date_column .1 | |
0 | 26 |
582 | 27 #DEFINE batt_voltage_row .8 |
28 #DEFINE batt_voltage_column .45 | |
29 #DEFINE batt_percent_row .26 | |
30 #DEFINE batt_percent_column .60 | |
0 | 31 |
582 | 32 #DEFINE surf_desat_row .103 |
33 #DEFINE surf_desat_column .65 | |
34 #DEFINE surf_nofly_row .128 | |
35 #DEFINE surf_nofly_column .65 | |
0 | 36 |
582 | 37 #DEFINE surf_warning1_column .40 |
38 #DEFINE surf_warning1_row .191 | |
39 #DEFINE surf_warning2_column surf_warning1_column | |
40 #DEFINE surf_warning2_row surf_warning1_row+.24 | |
41 #DEFINE surf_warning_length .11 ; total string length | |
0 | 42 |
582 | 43 #DEFINE surf_temp_row .185 |
44 #DEFINE surf_temp_column .120 | |
45 #DEFINE surf_press_row .160 | |
46 #DEFINE surf_press_column .98 | |
0 | 47 |
582 | 48 #DEFINE surf_gaslist_row .66 |
49 #DEFINE surf_gaslist_column .2 | |
50 #DEFINE surf_gaslist_spacing .24 | |
0 | 51 |
582 | 52 #DEFINE surf_customview_title_row .52 |
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 | 55 #DEFINE surf_customtext_row1 .66 |
56 #DEFINE surf_customtext_row2 surf_customtext_row1+.24 | |
57 #DEFINE surf_customtext_row3 surf_customtext_row2+.24 | |
58 #DEFINE surf_customtext_row4 surf_customtext_row3+.24 | |
59 #DEFINE surf_customtext_row5 surf_customtext_row4+.24 | |
60 #DEFINE surf_customtext_column .5 | |
0 | 61 |
582 | 62 #DEFINE surf_compass_mask_row surf_customtext_row2 |
63 #DEFINE surf_compass_mask_column .10 | |
64 #DEFINE surf_compass_head_row surf_customtext_row4-.8 | |
65 #DEFINE surf_compass_head_column .10 | |
0 | 66 |
582 | 67 #DEFINE surf_compass_bear_column .15 |
68 #DEFINE surf_compass_bear_row surf_customtext_row5 | |
382 | 69 |
582 | 70 #DEFINE surf_hud_sensor1_column .112 |
71 #DEFINE surf_hud_sensor1_row .87 | |
72 #DEFINE surf_hud_sensor2_column surf_hud_sensor1_column | |
73 #DEFINE surf_hud_sensor2_row .111 | |
74 #DEFINE surf_hud_sensor3_column surf_hud_sensor1_column | |
75 #DEFINE surf_hud_sensor3_row .135 | |
0 | 76 |
582 | 77 #DEFINE surf_menu_sensor1_column .80 |
78 #DEFINE surf_menu_sensor1_row .60 | |
79 #DEFINE surf_menu_sensor2_column surf_menu_sensor1_column | |
80 #DEFINE surf_menu_sensor2_row surf_menu_sensor1_row+.27*.1 | |
81 #DEFINE surf_menu_sensor3_column surf_menu_sensor1_column | |
82 #DEFINE surf_menu_sensor3_row surf_menu_sensor1_row+.27*.2 | |
83 #DEFINE surf_menu_sensor4_column surf_menu_sensor1_column | |
84 #DEFINE surf_menu_sensor4_row surf_menu_sensor1_row-.27*.1 | |
85 #DEFINE surf_menu2_sensor1_row .47 | |
86 #DEFINE surf_menu2_sensor2_row surf_menu2_sensor1_row+.27*.1 | |
87 #DEFINE surf_menu2_sensor3_row surf_menu2_sensor1_row+.27*.2 | |
88 #DEFINE surf_menu2_ambient_row surf_menu2_sensor1_row+.27*.4 | |
89 #DEFINE surf_menu2_ambient_column .95 | |
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 | 92 |
582 | 93 #DEFINE surf_tissue_diagram_top .66 |
94 #DEFINE surf_tissue_diagram_bottom surf_tissue_diagram_top+.117 ; 183 | |
95 #DEFINE surf_tissue_diagram_left .5 | |
96 #DEFINE surf_tissue_diagram_right surf_decotype_column-.5 | |
97 #DEFINE surf_tissue_N2_row surf_tissue_diagram_top+.1 | |
98 #DEFINE surf_tissue_N2_column surf_tissue_diagram_left+.5 | |
99 #DEFINE surf_tissue_He_row surf_tissue_diagram_top+.56 | |
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 | 102 #DEFINE surf_decotype_row .60 |
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 | 106 #DEFINE surf_decotype_boxes_top surf_decotype_row+.30+.25-.1 |
107 #DEFINE surf_decotype_boxes_bottom surf_decotype_boxes_top+.22 | |
108 #DEFINE surf_decotype_boxes_left1 surf_decotype_column+.5 | |
109 #DEFINE surf_decotype_boxes_left2 surf_decotype_boxes_left1+.9 | |
110 #DEFINE surf_decotype_boxes_left3 surf_decotype_boxes_left1+.18 | |
111 #DEFINE surf_decotype_boxes_left4 surf_decotype_boxes_left1+.27 | |
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 | 114 #DEFINE surf_mV_sensor_column .5 |
115 #DEFINE surf_mV_sensor1_row .90 | |
116 #DEFINE surf_mV_sensor2_row surf_mV_sensor1_row+.24 | |
117 #DEFINE surf_mV_sensor3_row surf_mV_sensor2_row+.24 |