annotate src/customview.asm @ 632:0347acdf6d8e

changelog updates
author heinrichsweikamp
date Sat, 29 Feb 2020 16:57:45 +0100
parents 185ba2f91f59
children 4050675965ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
heinrichsweikamp
parents:
diff changeset
1 ;=============================================================================
heinrichsweikamp
parents:
diff changeset
2 ;
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
3 ; File customview.asm combined next generation V3.08.8
0
heinrichsweikamp
parents:
diff changeset
4 ;
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
5 ; Custom Views in Surface and Dive Mode
0
heinrichsweikamp
parents:
diff changeset
6 ;
heinrichsweikamp
parents:
diff changeset
7 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved.
heinrichsweikamp
parents:
diff changeset
8 ;=============================================================================
heinrichsweikamp
parents:
diff changeset
9 ; HISTORY
heinrichsweikamp
parents:
diff changeset
10 ; 2011-08-10 : [mH] moving from OSTC code
heinrichsweikamp
parents:
diff changeset
11
heinrichsweikamp
parents:
diff changeset
12 ;=============================================================================
heinrichsweikamp
parents:
diff changeset
13
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
14 #include "hwos.inc" ; mandatory header
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 576
diff changeset
15 #include "tft_outputs.inc"
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 576
diff changeset
16 #include "strings.inc"
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 576
diff changeset
17 #include "tft.inc"
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 576
diff changeset
18 #include "wait.inc"
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 576
diff changeset
19 #include "surfmode.inc"
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 576
diff changeset
20 #include "convert.inc"
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 576
diff changeset
21 #include "divemode.inc"
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 576
diff changeset
22 #include "i2c.inc"
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 576
diff changeset
23 #include "start.inc"
0
heinrichsweikamp
parents:
diff changeset
24
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 576
diff changeset
25
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
26 extern gaslist_strcat_gas_cd
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
27 extern char_I_model
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
28
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
29 IFDEF _compass
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 576
diff changeset
30 extern TFT_surface_compass_mask
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 576
diff changeset
31 extern TFT_dive_compass_mask
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
32 ENDIF
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
33
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
34 #DEFINE num_premenu_items .11 ; overall number of pre-menu items
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 576
diff changeset
35
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
36 custview CODE
0
heinrichsweikamp
parents:
diff changeset
37
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
38 ;-----------------------------------------------------------------------------
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
39
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
40
0
heinrichsweikamp
parents:
diff changeset
41 ;=============================================================================
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
42 ; Jump table for the every-second tasks for the custom view area (dive mode)
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
43 ;
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
44 ; Attention: the ordering must be in line with the init jump table and the
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
45 ; index numbers defined in hwos.inc!
0
heinrichsweikamp
parents:
diff changeset
46
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
47 global dive_customview_second
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
48 dive_customview_second:
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
49 movf active_customview,W ; get current view
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
50 dcfsnz WREG,F ;
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
51 goto TFT_avr_stopwatch ; 1: average depth and stopwatch
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
52 dcfsnz WREG,F ;
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
53 IFDEF _compass
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
54 return ; 2: compass - will be updated separately (faster) in dive mode
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
55 ELSE
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
56 return ; 2: not available without compass
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
57 ENDIF
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
58 dcfsnz WREG,F ;
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
59 IFDEF _external_sensor
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
60 goto TFT_ppo2_sensors ; 3: ppO2 sensors
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
61 ELSE
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
62 return ; 3: not available without external sensors
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
63 ENDIF
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
64 dcfsnz WREG,F ;
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
65 IFDEF _ccr_pscr
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
66 goto TFT_sensor_check ; 4: sensor check
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
67 ELSE
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
68 return ; 4: not available without CCR / pSCR mode
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
69 ENDIF
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
70 dcfsnz WREG,F ;
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
71 IFDEF _ccr_pscr
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
72 goto TFT_pscr_info ; 5: pSCR data
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
73 ELSE
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
74 return ; 5: not available without CCR / pSCR mode
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
75 ENDIF
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
76 dcfsnz WREG,F ;
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
77 IFDEF _rx_functions
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
78 goto TFT_pressures_SAC ; 6: tank pressure and SAC rate
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
79 ELSE
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
80 return ; 6: not available without RX functions
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
81 ENDIF
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
82 dcfsnz WREG,F ;
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
83 goto TFT_gas_needs ; 7: gas needs for ascent / cave return
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
84 dcfsnz WREG,F ;
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
85 IFDEF _cave_mode
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
86 goto TFT_cave_tts ; 8: cave mode TTS
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
87 ELSE
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
88 return ; 8: not available without cave mode functions
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
89 ENDIF
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
90 dcfsnz WREG,F ;
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
91 goto TFT_decoplan ; 9: deco plan
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
92 dcfsnz WREG,F ;
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
93 goto TFT_ceiling_GF_tissue ; 10: ceiling, current GF and tissues
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
94 dcfsnz WREG,F ;
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
95 goto TFT_CNS ; 11: CNS values
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
96 dcfsnz WREG,F ;
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
97 goto TFT_ppo2_ead_end_cns ; 12: ppO2, END/EAD and CNS / gas density
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
98 dcfsnz WREG,F ;
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
99 goto TFT_clock_batt_surfpress ; 13: clock, battery and surface pressure
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
100 dcfsnz WREG,F ;
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
101 return ; 14: GF factors - static only
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
102 dcfsnz WREG,F ;
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
103 IFDEF _cave_mode
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
104 goto TFT_cave_waypoints ; 15: cave waypoints
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
105 ELSE
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
106 return ; 15: not available without cave mode functions
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
107 ENDIF
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
108 return ; 0: do nothing
0
heinrichsweikamp
parents:
diff changeset
109
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
110 ;-----------------------------------------------------------------------------
0
heinrichsweikamp
parents:
diff changeset
111
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 576
diff changeset
112 global surf_customview_toggle
0
heinrichsweikamp
parents:
diff changeset
113 surf_customview_toggle:
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
114 bcf switch_right ; clear button event
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
115 incf active_customview,F ; number of custom view to show
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
116
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
117 IFDEF _compass
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
118 movlw .6 ; index of surface custom view compass
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
119 cpfseq active_customview ; will compass be shown in custom view?
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
120 call I2C_sleep_compass ; NO - stop compass
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
121 ENDIF
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
122
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
123 movlw d'10' ; max number of custom views in surface mode
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
124 cpfsgt active_customview ; max reached?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
125 bra surf_customview_mask ; NO - show
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
126 movlw .1 ; YES - wrap around to 1st view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
127 movwf active_customview ; - ...
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
128 ;bra surf_customview_mask ; - show
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
129
0
heinrichsweikamp
parents:
diff changeset
130
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 576
diff changeset
131 global surf_customview_mask
0
heinrichsweikamp
parents:
diff changeset
132 surf_customview_mask:
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 576
diff changeset
133 WIN_BOX_BLACK .50,surf_warning1_row-1, .0, surf_decotype_column-.1 ; top, bottom, left, right
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
134 WIN_TINY surf_customview_title_column,surf_customview_title_row ; set title position
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
135 WIN_COLOR color_greenish ; set title color
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
136
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
137 movf active_customview,W ; get custom view to show
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
138 movff WREG,customview_surfmode ; save number for later recall
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
139 dcfsnz WREG,F ; 1:
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
140 bra surf_customview_init_view1 ; OC gas list
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
141 dcfsnz WREG,F ; 2:
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
142 bra surf_customview_init_view2 ; CC dil list
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
143 dcfsnz WREG,F ; 3:
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 576
diff changeset
144 bra surf_customview_init_view3 ; CC SP list
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
145 dcfsnz WREG,F ; 4:
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
146 bra surf_customview_init_view4 ; custom text
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
147 dcfsnz WREG,F ; 5:
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
148 bra surf_customview_init_view5 ; tissue diagram
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
149 dcfsnz WREG,F ; 6:
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
150 bra surf_customview_init_view6 ; compass
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
151 dcfsnz WREG,F ; 7:
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
152 bra surf_customview_init_view7 ; deco settings
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
153 dcfsnz WREG,F ; 8:
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
154 bra surf_customview_init_view8 ; last dive info
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
155 dcfsnz WREG,F ; 9:
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
156 bra surf_customview_init_view9 ; sensor mV readings
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
157 dcfsnz WREG,F ; 10:
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
158 bra surf_customview_init_view10 ; tank data
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
159 bra surf_customview_init_view4 ; default view after restart and loading of new firmware
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
160
0
heinrichsweikamp
parents:
diff changeset
161
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
162 surf_customview_init_view1: ; view 1: OC Gas list
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
163 btfsc FLAG_gauge_mode ; in gauge mode?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
164 bra surf_customview_toggle ; YES - not available in gauge mode, goto next view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
165 btfsc FLAG_apnoe_mode ; in apnoe mode?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
166 bra surf_customview_toggle ; YES - not available in apnoe mode, goto next view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
167 IFDEF _ccr_pscr
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
168 btfss FLAG_oc_mode ; in OC mode?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
169 bra surf_customview_init_view1a ; NO - (1)
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
170 ENDIF
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
171 STRCPY_TEXT_PRINT tGaslist ; YES - title of custom view / OC mode
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
172 IFDEF _ccr_pscr
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
173 bra surf_customview_init_view1b ; - continue with common part
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
174 surf_customview_init_view1a:
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
175 STRCPY_TEXT_PRINT tDiveBailout ; (1) - title of custom view / CCR & pSCR mode
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
176 ENDIF
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
177 surf_customview_init_view1b:
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
178 call TFT_standard_color ; set color
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
179 call TFT_gaslist_surfmode ; show gas list
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
180 bra customview_toggle_exit ; done
188
ebc28381f17d NEW: Show Bailout Gas List in Surface mode (CCR Modes)
heinrichsweikamp
parents: 184
diff changeset
181
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
182
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
183 surf_customview_init_view2: ; view 2: CCR / pSCR diluent list
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
184 IFDEF _ccr_pscr
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
185 btfsc FLAG_ccr_mode ; in CCR mode?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
186 bra surf_customview_init_view2a ; YES - (1)
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
187 btfsc FLAG_pscr_mode ; in pSCR mode?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
188 bra surf_customview_init_view2a ; YES - (1)
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
189 bra surf_customview_toggle ; NO - not available if not in CCR or pSCR mode, goto next view
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
190 surf_customview_init_view2a:
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
191 STRCPY_TEXT_PRINT tGaslistCC ; (1) - title of custom view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
192 call TFT_standard_color ; - set color
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
193 call TFT_dillist_surfmode ; - show diluent list
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
194 bra customview_toggle_exit ; - done
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
195 ELSE
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
196 bra surf_customview_toggle ; not available without CCR/pSCR mode compiled in, goto next view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
197 ENDIF
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
198
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 576
diff changeset
199
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
200 surf_customview_init_view3: ; view 3: CC SP list
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
201 IFDEF _ccr_pscr
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
202 btfss FLAG_ccr_mode ; in CCR mode?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
203 bra surf_customview_toggle ; NO - not available if not in CCR mode, goto next view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
204 STRCPY_TEXT_PRINT tFixedSetpoints ; YES - title of custom view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
205 call TFT_standard_color ; - set color
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
206 call TFT_splist_surfmode ; - show setpoint list
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
207 bra customview_toggle_exit ; - done
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
208 ELSE
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
209 bra surf_customview_toggle ; not available without CCR/pSCR mode compiled in, goto next view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
210 ENDIF
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
211
0
heinrichsweikamp
parents:
diff changeset
212
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
213 surf_customview_init_view9: ; view 9: sensor mV at the surface
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
214 IFDEF _external_sensor
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
215 btfsc FLAG_ccr_mode ; in CCR mode?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
216 bra surf_customview_init_view9a ; YES - (1)
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
217 btfsc FLAG_pscr_mode ; in pSCR mode?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
218 bra surf_customview_init_view9a ; YES - (1)
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
219 bra surf_customview_toggle ; NO - not available if not in CCR or pSCR mode, goto next view
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
220 surf_customview_init_view9a:
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
221 movff opt_ccr_mode,WREG ; (1) - get SP mode (0: fixed SP, 1: Sensor, 2: auto SP)
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
222 sublw .1 ; - opt_ccr_mode = 1 (sensor)?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
223 bnz surf_customview_toggle ; NO - goto next view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
224 STRCPY_TEXT_PRINT tSensorMilliVolt ; YES - title of custom view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
225 call TFT_standard_color ; - set color
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
226 call TFT_sensor_mV ; - write sensor mV readings to screen
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
227 bra customview_toggle_exit ; - done
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
228 ELSE
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
229 bra surf_customview_toggle ; not available without CCR/pSCR mode compiled in, goto next view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
230 ENDIF
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
231
0
heinrichsweikamp
parents:
diff changeset
232
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
233 surf_customview_init_view4: ; view 4: custom text
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
234 call TFT_standard_color ; set color
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
235 call TFT_custom_text ; show the custom text
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
236 bra customview_toggle_exit ; done
0
heinrichsweikamp
parents:
diff changeset
237
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
238
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
239 surf_customview_init_view5: ; view 5: tissue diagram
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
240 btfsc FLAG_gauge_mode ; in gauge mode?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
241 bra surf_customview_toggle ; YES - not available in gauge mode, goto next view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
242 btfsc FLAG_apnoe_mode ; in apnoe mode?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
243 bra surf_customview_toggle ; YES - not available in apnoe mode, goto next view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
244 call TFT_standard_color ; set color
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
245 call TFT_surface_tissues ; show tissue diagram
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
246 bra customview_toggle_exit ; done
0
heinrichsweikamp
parents:
diff changeset
247
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
248
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
249 surf_customview_init_view6: ; view 6: compass
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
250 IFDEF _compass
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
251 call I2C_init_compass ; start compass
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
252 call TFT_surface_compass_mask ; show compass mask
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
253 bra customview_toggle_exit ; done
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
254 ELSE
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
255 bra surf_customview_toggle ; not available without compass compiled in, goto next view
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
256 ENDIF
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
257
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
258
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
259 surf_customview_init_view7: ; view 7: deco settings
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
260 btfsc FLAG_gauge_mode ; in gauge mode?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
261 bra surf_customview_toggle ; YES - not available in gauge mode, goto next view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
262 btfsc FLAG_apnoe_mode ; in apnoe mode?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
263 bra surf_customview_toggle ; YES - not available in apnoe mode, goto next view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
264 call TFT_surface_decosettings ; show all deco settings
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
265 bra customview_toggle_exit ; done
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
266
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
267
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
268 surf_customview_init_view8: ; view 8: last dive info
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
269 call TFT_standard_color ; set color
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
270 call TFT_surface_lastdive ; show last dive info
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
271 bra customview_toggle_exit ; done
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 576
diff changeset
272
0
heinrichsweikamp
parents:
diff changeset
273
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
274 surf_customview_init_view10: ; view 10: transmitter data / debug
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
275 IFDEF _rx_functions
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
276 btfss tr_functions_activated ; TR functions activated?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
277 bra surf_customview_toggle ; NO - show next view in list
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
278 STRCAT_PRINT "ID bar Volt" ; YES - title of custom view (none language-dependent)
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
279 call TFT_surface_tankdata ; - show received data
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
280 bra customview_toggle_exit ; - done
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
281 ELSE
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
282 bra surf_customview_toggle ; not available without RX functions compiled in, goto next view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
283 ENDIF
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
284
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
285 ;-----------------------------------------------------------------------------
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
286
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 576
diff changeset
287 global menuview_toggle
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
288 global menuview_toggle_reset
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
289 menuview_toggle: ; show main menu or the pre-menu
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
290 bcf switch_left ; clear button event
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
291 movlw divemode_timeout_premenu ; get timeout for dive mode pre-menu
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
292 call reset_timeout_time ; reset timeout
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
293 bsf dive_options_menu ; flag that the dive options menu is shown
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
294 incf active_premenu,F ; increment pre-menu item number
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
295 movlw num_premenu_items ; get count of pre-menu items
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
296 cpfsgt active_premenu ; max reached?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
297 bra menuview_mask ; NO - show item
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
298 ;bra menuview_toggle_reset ; YES - reset selector
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
299 menuview_toggle_reset: ; timeout occurred, beyond max number of options, or item executed
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
300 clrf active_premenu ; reset pre-menu selector
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
301 bcf dive_options_menu ; the dive options menu is not shown anymore
0
heinrichsweikamp
parents:
diff changeset
302 menuview_mask:
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
303 WIN_BOX_BLACK dm_premenu_row, dm_premenu_bot, dm_premenu_col, dm_premenu_rgt ; top, bottom, left, right
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
304 tstfsz active_premenu ; any pre-menu selected?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
305 bra menuview_items ; YES - display menu item
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
306 bcf win_invert ; NO - end inverse printing
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
307 btfss FLAG_apnoe_mode ; - in apnoe mode?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
308 goto TFT_show_temp_divemode ; YES - restore temperature and done
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
309 goto TFT_standard_color ; NO - done
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
310
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
311 menuview_items:
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
312 call TFT_attention_color ; set color
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
313 bsf win_invert ; set inverse printing
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
314 WIN_SMALL dm_premenu_col,dm_premenu_row
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
315 movf active_premenu,W ; get active pre-menu item
0
heinrichsweikamp
parents:
diff changeset
316 dcfsnz WREG,F
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
317 bra menuview_view_gaschange ; 1: gas change (skipped if no better gas/dil cued)
137
28b057aa9f75 Simplify gas change
heinrichsweikamp
parents: 136
diff changeset
318 dcfsnz WREG,F
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
319 bra menuview_view_divemenu ; 2: "Menu?" (skipped in gauge and apnoe modes)
254
5fe7aff622f3 preparations to set a course for the compass display
heinrichsweikamp
parents: 249
diff changeset
320 dcfsnz WREG,F
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
321 IFDEF _cave_mode
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
322 bra menuview_view_cavemenu ; 3: "Cave?" (skipped if not in cave mode)
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
323 ELSE
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
324 bra menuview_toggle ; 3: cave mode not implemented, go to next menu item
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
325 ENDIF
0
heinrichsweikamp
parents:
diff changeset
326 dcfsnz WREG,F
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
327 bra menuview_view_sim_quit ; 4: "Quit?" (in simulation mode only)
0
heinrichsweikamp
parents:
diff changeset
328 dcfsnz WREG,F
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
329 bra menuview_view_sim_down ; 5: "Sim down" (in simulation mode only)
0
heinrichsweikamp
parents:
diff changeset
330 dcfsnz WREG,F
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
331 bra menuview_view_sim_up ; 6: "Sim up" (in simulation mode only)
0
heinrichsweikamp
parents:
diff changeset
332 dcfsnz WREG,F
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
333 bra menuview_view_sim_time ; 7: "Sim+5'" (in simulation mode only)
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
334 dcfsnz WREG,F
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
335 bra menuview_view_apnoe_quit ; 8: "Quit?" (in apnoe mode only)
0
heinrichsweikamp
parents:
diff changeset
336 dcfsnz WREG,F
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
337 bra menuview_view_gauge_reset ; 9: "Reset Avr" (in gauge mode only)
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
338 dcfsnz WREG,F
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
339 bra menuview_view_course ; 10: "Course" (only when compass is shown)
216
973a0969e0ac NEW: On-board simulator can increase divetime in 5min steps
heinrichsweikamp
parents: 192
diff changeset
340 dcfsnz WREG,F
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
341 bra menuview_view_layout ; 11: "Layout" (offer alternative layout, aka blind mode)
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
342
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
343 ; when adding or removing pre-menu items, adjust the value num_premenu_items in the #DEFINE !
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 576
diff changeset
344
0
heinrichsweikamp
parents:
diff changeset
345 menuview_exit:
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 576
diff changeset
346 call TFT_standard_color
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
347 bcf win_invert ; reset invert flag
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
348 return ; active pre-menu = 0, i.e. show nothing
137
28b057aa9f75 Simplify gas change
heinrichsweikamp
parents: 136
diff changeset
349
28b057aa9f75 Simplify gas change
heinrichsweikamp
parents: 136
diff changeset
350
28b057aa9f75 Simplify gas change
heinrichsweikamp
parents: 136
diff changeset
351 menuview_view_gaschange:
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
352 btfsc request_gas_change ; last gas change request executed yet?
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
353 bra menuview_toggle ; YES - call next option
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
354 IFDEF _ccr_pscr
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
355 btfsc FLAG_oc_mode ; in OC mode?
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
356 bra menuview_view_gaschange_OC ; YES
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
357 btfsc bailout_mode ; in bailout?
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
358 bra menuview_view_gaschange_OC ; YES
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
359 menuview_view_gaschange_DIL:
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
360 btfss better_dil_available ; is the better diluent still available?
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
361 bra menuview_toggle ; NO - call next option
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
362 movff best_dil_number,PRODL ; number (1-5) of the "best diluent"
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
363 bsf is_diluent_menu ; setting up diluents
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
364 bra menuview_view_gaschange_com
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
365 ENDIF
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
366 menuview_view_gaschange_OC:
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
367 btfss better_gas_available ; is the better gas still available?
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
368 bra menuview_toggle ; NO - call next option
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
369 movff best_gas_number,PRODL ; number (1-5) of the "best gas"
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
370 bcf is_diluent_menu ; setting up OC gases
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
371 menuview_view_gaschange_com:
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
372 decf PRODL,F ; (1-5) -> (0-4)
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
373 bsf short_gas_descriptions ; use short version of gaslist_strcat_gas_cd and gaslist_strcat_setpoint
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
374 bsf better_gas_hint ; color-code as best gas/diluent
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
375 call gaslist_strcat_gas_cd ; append gas description of gas #PRODL (0-4) to current string
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
376 movlw .5 ; point to 6th character (5 chars are used for the gas/dil description)
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
377 movwf FSR2L ; ...
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
378 STRCAT_PRINT "?" ; print question mark
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
379 bra menuview_exit ; done
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
380
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
381 menuview_view_divemenu:
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
382 btfsc FLAG_apnoe_mode ; in apnoe mode?
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
383 bra menuview_toggle ; YES - goto next option
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
384 btfsc FLAG_gauge_mode ; NO - in gauge mode?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
385 bra menuview_toggle ; YES - goto next option
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
386 PUTC "\xb7" ; NO - print '->' symbol
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
387 STRCAT_TEXT_PRINT tDivePreMenu ; - print "Menu?"
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
388 bra menuview_exit ; - done
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
389
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
390 IFDEF _cave_mode
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
391 menuview_view_cavemenu:
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
392 TSTOSS opt_cave_mode ; cave mode switched on?
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
393 bra menuview_toggle ; NO - goto next option
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
394 PUTC "\xb7" ; YES - print '->' symbol
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
395 STRCAT_TEXT_PRINT tDivePreCave ; - print "Cave?"
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
396 bra menuview_exit ; - done
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
397 ENDIF
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
398
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
399 menuview_view_sim_quit:
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
400 btfss simulatormode ; in simulator mode?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
401 bra menuview_toggle ; NO - goto next option
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
402 STRCPY_TEXT_PRINT tQuitSim ; YES - print "Quit Simulation?"
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
403 bra menuview_exit ; - done
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
404
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
405 menuview_view_sim_down:
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
406 btfss simulatormode ; in simulator mode?
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
407 bra menuview_toggle ; NO - goto next option
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
408 STRCPY_PRINT "Sim\xb8" ; print down arrow for going down
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
409 bra menuview_exit ; done
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
410
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
411 menuview_view_sim_up:
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
412 btfss simulatormode ; in simulator mode?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
413 bra menuview_toggle ; NO - goto next option
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
414 STRCPY_PRINT "Sim\xb9" ; YES - print up arrow for going up
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
415 bra menuview_exit ; - done
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
416
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
417 menuview_view_sim_time:
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
418 btfss simulatormode ; in simulator mode?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
419 bra menuview_toggle ; NO - goto next option
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
420 btfsc FLAG_gauge_mode ; YES - in gauge mode?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
421 bra menuview_toggle ; YES - goto next option
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
422 btfsc FLAG_apnoe_mode ; NO - in apnoe mode?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
423 bra menuview_toggle ; YES - goto next option
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
424 STRCPY_PRINT "Sim+5'" ; NO - print "Sim+5'"
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
425 bra menuview_exit ; - done
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
426
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
427 menuview_view_apnoe_quit:
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
428 btfss FLAG_apnoe_mode ; in apnoe mode?
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
429 bra menuview_toggle ; NO - goto next option
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
430 btfss apnoe_at_surface ; YES - at the surface?
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
431 bra menuview_toggle ; NO - goto next option
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
432 STRCPY_TEXT_PRINT tQuitSim ; YES - print "Quit Apnea mode?"
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
433 bra menuview_exit ; - done
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
434
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
435 menuview_view_gauge_reset:
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
436 btfss FLAG_gauge_mode ; in gauge mode?
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
437 bra menuview_toggle ; NO - goto next option
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
438 STRCPY_TEXT_PRINT tResetAvg ; YES - print "Reset Avg."
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
439 bra menuview_exit ; - done
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
440
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
441 menuview_view_course:
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
442 IFDEF _compass
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
443 movlw index_compass_dm ; index of compass view
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
444 cpfseq active_customview ; in compass view?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
445 bra menuview_toggle ; NO - goto next option
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
446 STRCPY_TEXT_PRINT tSetHeading ; YES - print "Heading"
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
447 bra menuview_exit ; - done
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
448 ELSE
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
449 bra menuview_toggle ; not available without compass compiled in, goto next option
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
450 ENDIF
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
451
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
452 menuview_view_layout:
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
453 btfsc FLAG_apnoe_mode ; in apnoe mode?
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
454 bra menuview_toggle ; YES - goto next option
628
cd58f7fc86db 3.05 stable work
heinrichsweikamp
parents: 623
diff changeset
455 STRCPY_TEXT_PRINT tDiveLayout ; NO - print "Layout"
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
456 bra menuview_exit ; - done
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 576
diff changeset
457
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
458 ;-----------------------------------------------------------------------------
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
459
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
460 ; Initialize dive mode custom view
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
461
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
462 global dive_customview_show
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
463 dive_customview_show:
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
464 btfss custom_view_locked ; custom view locked?
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
465 bra dive_customview_show_1 ; NO - call-up the view
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
466 movwf backup_customview ; YES - store requested custom view for later recall
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
467 return ; - done
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
468 dive_customview_show_1:
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
469 movwf active_customview ; set the requested custom view
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
470 bra dive_customview_callup ; call-up the custom view
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
471
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
472 global dive_customview_recall
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
473 dive_customview_recall:
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
474 movff backup_customview,active_customview ; recall the saved custom view
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
475 bra dive_customview_callup ; call-up the custom view
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
476
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
477 global dive_customview_toggle
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
478 dive_customview_toggle:
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
479 incf active_customview,F ; increment number of custom view to show
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
480 movlw index_cv_dm_max ; highest index in use in dive mode custom view
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
481 cpfsgt active_customview ; max reached?
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
482 bra dive_customview_callup ; NO - call-up the custom view
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
483 clrf active_customview ; YES - reset to zero (zero = blank custom view)
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
484 ;bra dive_customview_callup ; call-up the custom view
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
485
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
486 global dive_customview_callup
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
487 dive_customview_callup:
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
488 movlw index_compass_dm ; get index of compass custom view
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
489 cpfseq active_customview ; will compass be shown?
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
490 call I2C_sleep_compass ; NO - stop compass
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
491 ;bra dive_customview_init ; continue with initializing selected custom view
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 576
diff changeset
492
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
493 ;----------------------------------------------------------------------------------
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
494 ; Jump table for initialization of the every-second tasks in custom view area (dive mode)
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
495 ;
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
496 ; Attention: the ordering must be in line with the every-second update jump table
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
497 ; and the index numbers defined in hwos.inc!
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
498 ;
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
499 dive_customview_init:
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
500 ; clear custom view area in dive mode
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
501 WIN_BOX_BLACK dm_customview_row, dm_customview_bot-.2, dm_customview_column, dm_customview_rgt ; top, bottom, left, right
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
502 movf active_customview,W ; get custom view to show
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
503 dcfsnz WREG,F ;
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
504 bra init_avr_stopwatch ; 1: average depth and stopwatch
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
505 dcfsnz WREG,F ;
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
506 bra init_TFT_dive_compass ; 2: compass
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
507 dcfsnz WREG,F ;
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
508 bra init_ppo2_sensors ; 3: ppO2 sensors
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
509 dcfsnz WREG,F ;
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
510 bra init_sensor_check ; 4: sensor check
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
511 dcfsnz WREG,F ;
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
512 bra init_pscr_info ; 5: pSCR data
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
513 dcfsnz WREG,F ;
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
514 bra init_pressures_SAC ; 6: tank pressure and SAC rate
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
515 dcfsnz WREG,F ;
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
516 bra init_gas_needs_ascent ; 7: gas needs for ascent / cave return
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
517 dcfsnz WREG,F ;
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
518 bra init_cave_tts ; 8: cave mode TTS
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
519 dcfsnz WREG,F ;
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
520 bra init_decoplan ; 9: deco plan (next stops)
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
521 dcfsnz WREG,F ;
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
522 bra init_ceiling_GF_tissue ; 10: ceiling, current GF and tissues
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
523 dcfsnz WREG,F ;
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
524 bra init_CNS ; 11: CNS values
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
525 dcfsnz WREG,F ;
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
526 bra init_ppo2_ead_end_cns ; 12: ppO2, END/EAD and CNS
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
527 dcfsnz WREG,F ;
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
528 bra init_clock_batt_surfpress ; 13: clock, battery and surface pressure
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
529 dcfsnz WREG,F ;
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
530 bra init_gf_factors ; 14: GF factors
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
531 dcfsnz WREG,F ;
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
532 bra init_cave_waypoints ; 15: cave waypoints
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
533 bra customview_toggle_exit ; 0: no view (blank screen in custom view area)
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 576
diff changeset
534
0
heinrichsweikamp
parents:
diff changeset
535
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
536 init_ppo2_sensors:
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
537 IFDEF _external_sensor
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
538 bsf trigger_temp_changed ; fake a change of the temperature to have the resettable dive time overwritten which was shown with the compass view
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
539 btfsc FLAG_ccr_mode ; in CC mode?
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
540 bra customview_init_view1a ; YES - (1)
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
541 btfsc FLAG_pscr_mode ; in pSCR mode?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
542 bra customview_init_view1a ; YES - (1)
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
543 bra dive_customview_toggle ; NO to both, goto next view
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 576
diff changeset
544 customview_init_view1a:
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
545 btfsc analog_o2_input ; (1) - do we have an analog input?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
546 bra customview_init_view1b ; YES - (2)
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
547 btfsc s8_digital_avail ; NO - do we have a digital S8 interface?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
548 bra customview_init_view1b ; YES - (2)
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
549 btfss optical_input ; NO - do we have an optical input?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
550 bra dive_customview_toggle ; NO - goto next view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
551 ; YES - (2)
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 576
diff changeset
552 customview_init_view1b:
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
553 call TFT_ppo2_sensors_mask ; (2) - mask for ppO2 sensors
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
554 call TFT_ppo2_sensors ; - data for ppO2 sensors
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
555 bra customview_toggle_exit ; - done
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
556 ELSE
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
557 bra dive_customview_toggle ; not available without external sensors, got next view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
558 ENDIF
0
heinrichsweikamp
parents:
diff changeset
559
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
560 init_avr_stopwatch:
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
561 btfsc FLAG_apnoe_mode ; in apnoe mode?
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
562 bra dive_customview_toggle ; YES - goto next view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
563 call TFT_avr_stopwatch_mask ; NO - mask for average depth and stopwatch
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
564 call TFT_avr_stopwatch ; - data for average depth and stopwatch
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
565 bra customview_toggle_exit ; - done
0
heinrichsweikamp
parents:
diff changeset
566
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
567 init_decoplan:
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
568 btfsc FLAG_apnoe_mode ; in apnoe mode?
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
569 bra dive_customview_toggle ; YES - goto next view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
570 btfsc FLAG_gauge_mode ; NO - in gauge mode?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
571 bra dive_customview_toggle ; YES - goto next view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
572 call TFT_decoplan_mask ; NO - mask for deco plan
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
573 call TFT_decoplan ; - data for deco plan
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
574 bra customview_toggle_exit ; - done
0
heinrichsweikamp
parents:
diff changeset
575
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
576 init_clock_batt_surfpress:
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
577 call TFT_clock_batt_surfpress_mask ; mask for clock, battery and surface pressure
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
578 call TFT_clock_batt_surfpress ; data for clock, battery and surface pressure
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
579 bra customview_toggle_exit ; done
0
heinrichsweikamp
parents:
diff changeset
580
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
581 init_TFT_dive_compass: ; compass
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
582 IFDEF _compass
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
583 call I2C_init_compass ; start compass
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
584 call TFT_dive_compass_mask ; show compass mask
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
585 bra customview_toggle_exit ; done
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
586 ELSE
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
587 bra dive_customview_toggle ; not available without compass compiled in, goto next view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
588 ENDIF
53
2825f1d2262f NEW: Dynamic Gaslist in OC mode (Divemode, Customview 7)
heinrichsweikamp
parents: 48
diff changeset
589
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
590 init_pressures_SAC: ; tank pressure and SAC rate
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
591 IFDEF _rx_functions
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
592 btfss tr_functions_activated ; TR functions activated?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
593 bra dive_customview_toggle ; NO - goto next view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
594 call TFT_pressures_SAC_mask ; YES - mask for pressures and SAC
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
595 call TFT_pressures_SAC ; - data for pressures and SAC
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
596 bra customview_toggle_exit ; - done
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
597 ELSE
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
598 bra dive_customview_toggle ; not available without RX functions, got next view
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
599 ENDIF
102
37275e0fa7f5 NEW: Show End-of-Dive time together with clock during deco
heinrichsweikamp
parents: 53
diff changeset
600
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
601 init_CNS: ; CNS at end of dive
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
602 btfsc FLAG_gauge_mode ; in gauge mode?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
603 bra dive_customview_toggle ; YES - call next view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
604 btfsc FLAG_apnoe_mode ; NO - in apnoe mode?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
605 bra dive_customview_toggle ; YES - call next view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
606 call TFT_CNS_mask ; NO - mask for CNS values
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
607 call TFT_CNS ; - data for CNS values
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
608 bra customview_toggle_exit ; - done
333
14b466f66a7f Extend the Ceiling custom-view with ppO2 and current GF
Janos Kovacs <kovjanos@gmail.com>
parents: 327
diff changeset
609
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
610 init_ceiling_GF_tissue: ; ceiling, tissues and current GF
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
611 btfsc FLAG_apnoe_mode ; in apnoe mode?
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
612 bra dive_customview_toggle ; YES - goto next view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
613 btfsc FLAG_gauge_mode ; NO - in gauge mode?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
614 bra dive_customview_toggle ; YES - call next view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
615 call TFT_ceiling_GF_tissue_mask ; NO - mask for ceiling, current GF and tissues
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
616 call TFT_ceiling_GF_tissue ; - data for ceiling, current GF and tissues
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
617 bra customview_toggle_exit ; - done
525
00df86a5ac01 BUGFIX: Do not show GF in divemode for non-GF deco mode
heinrichsweikamp
parents: 517
diff changeset
618
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
619 init_sensor_check: ; sensor check
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
620 IFDEF _ccr_pscr
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
621 btfss FLAG_ccr_mode ; in CCR mode?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
622 bra dive_customview_toggle ; NO - goto next view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
623 call TFT_sensor_check_mask ; YES - mask for sensor check
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
624 call TFT_sensor_check ; - data for sensor check
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
625 bra customview_toggle_exit ; - done
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
626 ELSE
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
627 bra dive_customview_toggle ; not available without CCR mode compiled in, goto next view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
628 ENDIF
123
d076e9c02438 add ceiling display
heinrichsweikamp
parents: 119
diff changeset
629
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
630 init_ppo2_ead_end_cns: ; ppO2, END/EAD and CNS
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
631 btfsc FLAG_apnoe_mode ; in apnoe mode?
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
632 bra dive_customview_toggle ; YES - goto next view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
633 btfsc FLAG_gauge_mode ; NO - in gauge mode?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
634 bra dive_customview_toggle ; YES - goto next view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
635 call TFT_ppo2_ead_end_cns_mask ; NO - mask for ppO2, END/EAD and CNS
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
636 call TFT_ppo2_ead_end_cns ; - data for ppO2, END/EAD and CNS
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
637 bra customview_toggle_exit ; - done
560
b7eb98dbd800 bump to 2.96beta (REFACTORED VERSION)
heinrichsweikamp
parents: 530
diff changeset
638
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
639 init_pscr_info: ; pSCR information
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
640 IFDEF _ccr_pscr
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
641 btfss FLAG_pscr_mode ; in pSCR mode?
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
642 bra dive_customview_toggle ; NO - goto next view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
643 call TFT_pscr_info_mask ; YES - mask for pSCR info
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
644 call TFT_pscr_info ; - data for pSCR info
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
645 bra customview_toggle_exit ; - done
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
646 ELSE
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
647 bra dive_customview_toggle ; not available without CCR / pSCR mode, goto next view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
648 ENDIF
604
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
649
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
650 init_gas_needs_ascent: ; gas needs for ascent
ca4556fb60b9 bump to 2.99beta, work on 3.00 stable
heinrichsweikamp
parents: 583
diff changeset
651 btfsc FLAG_apnoe_mode ; in apnoe mode?
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
652 bra dive_customview_toggle ; YES - goto next view
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
653 btfsc FLAG_gauge_mode ; NO - in gauge mode?
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
654 bra dive_customview_toggle ; YES - goto next view
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
655 TSTOSS opt_calc_gasvolume ; NO - check if gas volume calculation is switched on
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
656 bra dive_customview_toggle ; NO - goto next view
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
657 call TFT_gas_needs_mask ; YES - mask for gas needs ascent
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
658 call TFT_gas_needs ; - data for gas needs ascent
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
659 bra customview_toggle_exit ; - done
582
b455b31ce022 work on 2.97 stable
heinrichsweikamp
parents: 576
diff changeset
660
631
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
661 init_cave_tts: ; cave mode data
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
662 IFDEF _cave_mode
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
663 btfss cave_mode ; in cave mode?
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
664 bra dive_customview_toggle ; NO - goto next view
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
665 call TFT_cave_tts_mask ; YES - show mask
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
666 call TFT_cave_tts ; - show data
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
667 bra customview_toggle_exit ; - done
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
668 ELSE
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
669 bra dive_customview_toggle ; not available without cave mode, goto next view
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
670 ENDIF
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
671
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
672 init_gf_factors:
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
673 call TFT_gf_factors_mask ; mask for GF factors (static only)
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
674 bra customview_toggle_exit ; done
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
675
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
676 init_cave_waypoints:
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
677 IFDEF _cave_mode
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
678 call TFT_cave_waypoints ; show waypoint graphics
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
679 bra customview_toggle_exit ; done
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
680 ELSE
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
681 bra dive_customview_toggle ; not available without cave mode, goto next view
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
682 ENDIF
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
683
185ba2f91f59 3.09 beta 1 release
heinrichsweikamp
parents: 628
diff changeset
684
0
heinrichsweikamp
parents:
diff changeset
685 customview_toggle_exit:
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
686 bcf request_next_custview ; clear request flag
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
687 return ; done
0
heinrichsweikamp
parents:
diff changeset
688
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
689 ;-----------------------------------------------------------------------------
0
heinrichsweikamp
parents:
diff changeset
690
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
691 END