diff code_part1/OSTC_code_asm_part1/divemode.asm @ 494:e9b1f162799d

testing graphical velocity
author heinrichsweikamp
date Mon, 07 Nov 2011 08:39:21 +0100
parents 19b9e19ea4da
children 4c7f7807b250
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/divemode.asm	Sun Nov 06 16:59:27 2011 +0100
+++ b/code_part1/OSTC_code_asm_part1/divemode.asm	Mon Nov 07 08:39:21 2011 +0100
@@ -80,7 +80,7 @@
 
 	bsf		twosecupdate					; Routines used in the "other second"
 	call	calc_average_depth				; calculate average depth
-;	call	calc_velocity					; calculate vertical velocity and display if > threshold (every two seconds)
+	call	calc_velocity					; calculate vertical velocity and display if > threshold (every two seconds)
 	
 	bra		diveloop_loop1x					; Common Tasks
 
@@ -138,7 +138,6 @@
 	btfsc	enter_error_sleep				; Enter Fatal Error Routine?
 	call	fatal_error_sleep				; Yes (In Sleepmode_vxx.asm!)
 
-	call	calc_velocity					; calculate vertical velocity and display if > threshold
 
 	bcf		onesecupdate					; one seconds update done
 
@@ -280,7 +279,7 @@
 	bsf		twosecupdate		; No, but next second!
 	; Routines used in the "other second"
 	call	calc_average_depth	; calculate average depth
-;	call	calc_velocity		; calculate vertical velocity and display if > threshold (every two seconds)
+	call	calc_velocity		; calculate vertical velocity and display if > threshold (every two seconds)
 	
 ; Calculate CNS	
     rcall    set_actual_ppo2            ; Set char_I_actual_ppO2
@@ -811,8 +810,7 @@
 
 	movff	sub_c+0,xA+0
 	movff	sub_c+1,xA+1
-	;movlw	d'39'						;77 when called every second....
-	movlw	d'77'						;77 when called every second....
+	movlw	d'39'						;77 when called every second....
 	movwf	xB+0
 	clrf	xB+1
 	call	mult16x16					; differential pressure in mbar*77...