annotate src/surfmode.inc @ 21:79b2084fd75a

Reset options to default if they are not within the allowed min/max values
author heinrichsweikamp
date Thu, 04 Jul 2013 09:51:33 +0200
parents 11d4fc797f74
children 50c3e2c7ba7a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
heinrichsweikamp
parents:
diff changeset
1 ;=============================================================================
heinrichsweikamp
parents:
diff changeset
2 ;
heinrichsweikamp
parents:
diff changeset
3 ; File surfmode.inc
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
heinrichsweikamp
parents:
diff changeset
11 extern surfloop
heinrichsweikamp
parents:
diff changeset
12 extern calc_deko_surfmode
heinrichsweikamp
parents:
diff changeset
13 extern timeout_surfmode
heinrichsweikamp
parents:
diff changeset
14 extern timeout_testmode
heinrichsweikamp
parents:
diff changeset
15
heinrichsweikamp
parents:
diff changeset
16 ; Surfacemode/Homescreen layout:
heinrichsweikamp
parents:
diff changeset
17 ; row=0...239
heinrichsweikamp
parents:
diff changeset
18 ; column=0...159 (x2)
heinrichsweikamp
parents:
diff changeset
19
heinrichsweikamp
parents:
diff changeset
20 #DEFINE surf_clock_row .28
heinrichsweikamp
parents:
diff changeset
21 #DEFINE surf_clock_column .5
heinrichsweikamp
parents:
diff changeset
22 #DEFINE surf_date_row .10
heinrichsweikamp
parents:
diff changeset
23 #DEFINE surf_date_column surf_clock_column
heinrichsweikamp
parents:
diff changeset
24
heinrichsweikamp
parents:
diff changeset
25 #DEFINE batt_voltage_row .46
heinrichsweikamp
parents:
diff changeset
26 #DEFINE batt_voltage_column surf_clock_column
heinrichsweikamp
parents:
diff changeset
27 #DEFINE batt_percent_row batt_voltage_row
heinrichsweikamp
parents:
diff changeset
28 #DEFINE batt_percent_column .30
heinrichsweikamp
parents:
diff changeset
29
heinrichsweikamp
parents:
diff changeset
30 #DEFINE surf_decotype_row .60
heinrichsweikamp
parents:
diff changeset
31 #DEFINE surf_decotype_column .100
heinrichsweikamp
parents:
diff changeset
32
heinrichsweikamp
parents:
diff changeset
33 #DEFINE surf_desat_row .103
heinrichsweikamp
parents:
diff changeset
34 #DEFINE surf_desat_column .65
heinrichsweikamp
parents:
diff changeset
35 #DEFINE surf_nofly_row .128
heinrichsweikamp
parents:
diff changeset
36 #DEFINE surf_nofly_column .65
heinrichsweikamp
parents:
diff changeset
37
heinrichsweikamp
parents:
diff changeset
38 #DEFINE surf_warning1_column .40
heinrichsweikamp
parents:
diff changeset
39 #DEFINE surf_warning1_row .191
heinrichsweikamp
parents:
diff changeset
40 #DEFINE surf_warning2_column surf_warning1_column
heinrichsweikamp
parents:
diff changeset
41 #DEFINE surf_warning2_row surf_warning1_row+.24
heinrichsweikamp
parents:
diff changeset
42 #DEFINE surf_warning_length .11 ; total string length
heinrichsweikamp
parents:
diff changeset
43
heinrichsweikamp
parents:
diff changeset
44 #DEFINE surf_temp_row .185
heinrichsweikamp
parents:
diff changeset
45 #DEFINE surf_temp_column .112
heinrichsweikamp
parents:
diff changeset
46 #DEFINE surf_press_row .160
heinrichsweikamp
parents:
diff changeset
47 #DEFINE surf_press_column .98
heinrichsweikamp
parents:
diff changeset
48
heinrichsweikamp
parents:
diff changeset
49 #DEFINE surf_gaslist_row .66
heinrichsweikamp
parents:
diff changeset
50 #DEFINE surf_gaslist_column .2
heinrichsweikamp
parents:
diff changeset
51 #DEFINE surf_gaslist_spacing .24
heinrichsweikamp
parents:
diff changeset
52
heinrichsweikamp
parents:
diff changeset
53 #DEFINE surf_customtext_row1 .66
heinrichsweikamp
parents:
diff changeset
54 #DEFINE surf_customtext_row2 surf_customtext_row1+.24
heinrichsweikamp
parents:
diff changeset
55 #DEFINE surf_customtext_row3 surf_customtext_row2+.24
heinrichsweikamp
parents:
diff changeset
56 #DEFINE surf_customtext_row4 surf_customtext_row3+.24
heinrichsweikamp
parents:
diff changeset
57 #DEFINE surf_customtext_row5 surf_customtext_row4+.24
heinrichsweikamp
parents:
diff changeset
58 #DEFINE surf_customtext_column .5
heinrichsweikamp
parents:
diff changeset
59
heinrichsweikamp
parents:
diff changeset
60 #DEFINE surf_compass_mask_row surf_customtext_row2
heinrichsweikamp
parents:
diff changeset
61 #DEFINE surf_compass_mask_column .10
heinrichsweikamp
parents:
diff changeset
62 #DEFINE surf_compass_head_row surf_customtext_row4-.5
heinrichsweikamp
parents:
diff changeset
63 #DEFINE surf_compass_head_column .18
heinrichsweikamp
parents:
diff changeset
64
heinrichsweikamp
parents:
diff changeset
65 #DEFINE surf_hud_sensor1_column .112
heinrichsweikamp
parents:
diff changeset
66 #DEFINE surf_hud_sensor1_row .87
heinrichsweikamp
parents:
diff changeset
67 #DEFINE surf_hud_sensor2_column surf_hud_sensor1_column
heinrichsweikamp
parents:
diff changeset
68 #DEFINE surf_hud_sensor2_row .111
heinrichsweikamp
parents:
diff changeset
69 #DEFINE surf_hud_sensor3_column surf_hud_sensor1_column
heinrichsweikamp
parents:
diff changeset
70 #DEFINE surf_hud_sensor3_row .135
heinrichsweikamp
parents:
diff changeset
71
heinrichsweikamp
parents:
diff changeset
72 #DEFINE surf_menu_sensor1_column .80
heinrichsweikamp
parents:
diff changeset
73 #DEFINE surf_menu_sensor1_row .73
heinrichsweikamp
parents:
diff changeset
74 #DEFINE surf_menu_sensor2_column surf_menu_sensor1_column
heinrichsweikamp
parents:
diff changeset
75 #DEFINE surf_menu_sensor2_row surf_menu_sensor1_row+.27*.1
heinrichsweikamp
parents:
diff changeset
76 #DEFINE surf_menu_sensor3_column surf_menu_sensor1_column
heinrichsweikamp
parents:
diff changeset
77 #DEFINE surf_menu_sensor3_row surf_menu_sensor1_row+.27*.2
heinrichsweikamp
parents:
diff changeset
78 #DEFINE surf_menu_sensor4_column surf_menu_sensor1_column
heinrichsweikamp
parents:
diff changeset
79 #DEFINE surf_menu_sensor4_row surf_menu_sensor1_row+.27*.3
heinrichsweikamp
parents:
diff changeset
80
heinrichsweikamp
parents:
diff changeset
81 #DEFINE surf_tissue_diagram_top .66
heinrichsweikamp
parents:
diff changeset
82 #DEFINE surf_tissue_diagram_bottom tissue_diagram_top+.64
heinrichsweikamp
parents:
diff changeset
83 #DEFINE surf_tissue_diagram_left .5
heinrichsweikamp
parents:
diff changeset
84 #DEFINE surf_tissue_diagram_right surf_decotype_column-.5
heinrichsweikamp
parents:
diff changeset
85 #DEFINE surf_tissue_N2_row surf_tissue_diagram_top+.1
heinrichsweikamp
parents:
diff changeset
86 #DEFINE surf_tissue_N2_column surf_tissue_diagram_left+.5
heinrichsweikamp
parents:
diff changeset
87 #DEFINE surf_tissue_He_row surf_tissue_diagram_top+.56
heinrichsweikamp
parents:
diff changeset
88 #DEFINE surf_tissue_He_column surf_tissue_N2_column