diff 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
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/surfmode.asm	Sat Jan 01 01:57:50 2011 +0100
+++ b/code_part1/OSTC_code_asm_part1/surfmode.asm	Wed Dec 29 01:41:13 2010 +0100
@@ -146,6 +146,17 @@
 	call	PLED_temp_surfmode			; Displays temperature
 	btfsc	pressure_refresh			; new pressure available?
 	call	set_dive_modes				; tests if depth>threshold
+	
+	; jDG TESTS =========================
+	btfss	pressure_refresh			; new pressure available?
+	bra     surfloop_loop3
+	call    altimeter_calc
+    movf    menupos3,W                  ; Get customview status.
+    bnz     surfloop_loop3              ; Already used ?
+    call    altimeter_display
+surfloop_loop3:
+	; jDG TESTS =========================
+
 	bcf		pressure_refresh			; until new pressure is available
 
 ; One minute tasks for all modes