Mercurial > public > hwos_code
comparison src/divemode.inc @ 560:b7eb98dbd800
bump to 2.96beta (REFACTORED VERSION)
author | heinrichsweikamp |
---|---|
date | Wed, 31 Jan 2018 19:39:37 +0100 |
parents | cf68fe0c3002 |
children | b455b31ce022 |
comparison
equal
deleted
inserted
replaced
559:9cb967d844f0 | 560:b7eb98dbd800 |
---|---|
1 ;============================================================================= | 1 ;============================================================================= |
2 ; | 2 ; |
3 ; File divemode.inc | 3 ; File divemode.inc REFACTORED VERSION V2.91 |
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-15 : [mH] moving from OSTC code | 9 ; 2011-08-15 : [mH] moving from OSTC code |
10 | 10 |
11 extern set_dive_modes | 11 extern set_dive_modes |
12 extern diveloop | 12 extern diveloop |
13 extern apnoe_calc_maxdepth | 13 extern apnoe_calc_maxdepth |
14 extern calc_deko_divemode_sensor | |
15 | |
14 | 16 |
15 ; Divemode layout: | 17 ; Divemode layout: |
16 ; row=0...239 | 18 ; row=0...239 |
17 ; column=0...159 (x2) | 19 ; column=0...159 (x2) |
18 | 20 |
71 #DEFINE dm_max_depth_bot dm_max_depth_row+.34 ; 48 | 73 #DEFINE dm_max_depth_bot dm_max_depth_row+.34 ; 48 |
72 #DEFINE dm_max_depth_rgt dm_max_depth_column+.36 ; 100 | 74 #DEFINE dm_max_depth_rgt dm_max_depth_column+.36 ; 100 |
73 #DEFINE dm_max_depth_dm_row dm_max_depth_row+.11 ; 25 | 75 #DEFINE dm_max_depth_dm_row dm_max_depth_row+.11 ; 25 |
74 #DEFINE dm_max_depth_dm_column dm_max_depth_column+.23 ; 87 | 76 #DEFINE dm_max_depth_dm_column dm_max_depth_column+.23 ; 87 |
75 #DEFINE dm_max_depth_dm_column_nvsi dm_max_depth_column_nvsi+.23 ; 77 | 77 #DEFINE dm_max_depth_dm_column_nvsi dm_max_depth_column_nvsi+.23 ; 77 |
78 #DEFINE dm_max_alt_column .0 | |
79 #DEFINE dm_max_alt_row .170 | |
80 #DEFINE dm_max_dm_alt_column dm_max_alt_column+.60 | |
76 ; Warning area (combined) | 81 ; Warning area (combined) |
77 #DEFINE dm_warning_row dm_offset+.36 ; 50 | 82 #DEFINE dm_warning_row dm_offset+.36 ; 50 |
78 #DEFINE dm_warning_column dm_upcnt_2ndcol ; 74 | 83 #DEFINE dm_warning_column dm_upcnt_2ndcol ; 74 |
79 #DEFINE dm_warning_bot dm_warning_row+.49 ; 99 | 84 #DEFINE dm_warning_bot dm_warning_row+.49 ; 99 |
80 #DEFINE dm_warning_rgt dm_warning_column+.62 ; 136 | 85 #DEFINE dm_warning_rgt dm_warning_column+.62 ; 136 |
97 #DEFINE dm_divetime_minsonly_column .111 ; 111 | 102 #DEFINE dm_divetime_minsonly_column .111 ; 111 |
98 #DEFINE dm_divetime_bot dm_divetime_row+.34 ; 48 | 103 #DEFINE dm_divetime_bot dm_divetime_row+.34 ; 48 |
99 #DEFINE dm_divetime_rgt .159 ; 159 | 104 #DEFINE dm_divetime_rgt .159 ; 159 |
100 #DEFINE dm_divetime_secs_row dm_divetime_row+.11 ; 25 | 105 #DEFINE dm_divetime_secs_row dm_divetime_row+.11 ; 25 |
101 #DEFINE dm_divetime_secs_column dm_divetime_column+.24 ; 139 | 106 #DEFINE dm_divetime_secs_column dm_divetime_column+.24 ; 139 |
107 #DEFINE dm_divetime_alt_row dm_offset ; 14 | |
108 #DEFINE dm_divetime_alt_column .68 | |
102 ; Warning icon | 109 ; Warning icon |
103 #DEFINE dm_warning_icon_row dm_offset+.41 ; 55 | 110 #DEFINE dm_warning_icon_row dm_offset+.41 ; 55 |
104 #DEFINE dm_warning_icon_column .137 ; 137 | 111 #DEFINE dm_warning_icon_column .137 ; 137 |
105 #DEFINE dm_warning_icon_bot dm_warning_icon_row+.38 ; 93 | 112 #DEFINE dm_warning_icon_bot dm_warning_icon_row+.38 ; 93 |
106 #DEFINE dm_warning_icon_rgt dm_warning_icon_column+.21 ; 156 | 113 #DEFINE dm_warning_icon_rgt dm_warning_icon_column+.21 ; 156 |
260 ;******* Custom content / #8 - Ceiling value for GF_hi ******* | 267 ;******* Custom content / #8 - Ceiling value for GF_hi ******* |
261 ; Title | 268 ; Title |
262 #DEFINE dm_custom_ceiling_text_row dm_customview_row+.1 ; 102 | 269 #DEFINE dm_custom_ceiling_text_row dm_customview_row+.1 ; 102 |
263 #DEFINE dm_custom_ceiling_text_column .68 ; 66 | 270 #DEFINE dm_custom_ceiling_text_column .68 ; 66 |
264 #DEFINE dm_custom_ceiling_ppo2_column .8 ; 8 | 271 #DEFINE dm_custom_ceiling_ppo2_column .8 ; 8 |
265 #DEFINE dm_custom_ceiling_ppo2_col_dil .0 ; 0 NEW tuned position because text is longer | 272 #DEFINE dm_custom_ceiling_ppo2_col_dil .0 ; 0 NEW tuned position because text is longer ## (?) |
266 | 273 |
267 ; Value | 274 ; Value |
268 #DEFINE dm_custom_ceiling_value_row dm_customview_row+.18 ; 119 | 275 #DEFINE dm_custom_ceiling_value_row dm_customview_row+.18 ; 119 |
269 #DEFINE dm_custom_ceiling_value_column .66 ; 64 | 276 #DEFINE dm_custom_ceiling_value_column .66 ; 64 |
270 #DEFINE dm_custom_ceiling_ppo2_val_col .2 ; 2 | 277 #DEFINE dm_custom_ceiling_ppo2_val_col .2 ; 2 |