comparison code_part1/OSTC_code_asm_part1/surfmode.asm @ 125:2907b42c195b

Altimeter: - use H = 19902 log10(P0/P) - Interface to select sea level mbars. - Average over 32 values, using 1/16 of mbar. - Display in customview area. - Fix display ****m when not yet computed - Fix reset when exiting sleep mode - Fix : edit menu in 1/4 of mbar. - Fix use CF#49 to enable/disable altimeter, also in altimeter menu. - Fix visible in Menu 2
author JeanDo
date Wed, 29 Dec 2010 01:41:13 +0100
parents 14a074e1a375
children 3f4d60385f9c
comparison
equal deleted inserted replaced
124:4f9f477bb452 125:2907b42c195b
144 call update_surf_press ; display surface pressure 144 call update_surf_press ; display surface pressure
145 btfsc pressure_refresh ; new temperature available? 145 btfsc pressure_refresh ; new temperature available?
146 call PLED_temp_surfmode ; Displays temperature 146 call PLED_temp_surfmode ; Displays temperature
147 btfsc pressure_refresh ; new pressure available? 147 btfsc pressure_refresh ; new pressure available?
148 call set_dive_modes ; tests if depth>threshold 148 call set_dive_modes ; tests if depth>threshold
149
150 ; jDG TESTS =========================
151 btfss pressure_refresh ; new pressure available?
152 bra surfloop_loop3
153 call altimeter_calc
154 movf menupos3,W ; Get customview status.
155 bnz surfloop_loop3 ; Already used ?
156 call altimeter_display
157 surfloop_loop3:
158 ; jDG TESTS =========================
159
149 bcf pressure_refresh ; until new pressure is available 160 bcf pressure_refresh ; until new pressure is available
150 161
151 ; One minute tasks for all modes 162 ; One minute tasks for all modes
152 btfsc oneminupdate ; do every minute tasks 163 btfsc oneminupdate ; do every minute tasks
153 call update_surfloop60 ; yes, e.g. update time and date 164 call update_surfloop60 ; yes, e.g. update time and date