changeset 415:e0907c7d8038 Improment_NVM

merged default into Improvment_NVM
author Ideenmodellierer
date Tue, 14 Jan 2020 21:52:15 +0100
parents 6886aeeca454 (current diff) 6f30f2011667 (diff)
children bcf447646e07
files
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Small_CPU/Src/pressure.c	Tue Jan 14 21:38:45 2020 +0100
+++ b/Small_CPU/Src/pressure.c	Tue Jan 14 21:52:15 2020 +0100
@@ -51,7 +51,6 @@
 
 #define PRESSURE_SURFACE_MAX_MBAR			(1030.0f)		/* It is unlikely that pressure at surface is greater than this value => clip to it */
 #define PRESSURE_HISTORY_SIZE				(8u)
-#define PRESSURE_JUMP_VALID_MBAR	    	(500.0f)		/* values are measure several times a second => jumps > 5m very unlikely */
 
 #define PRESSURE_SURFACE_QUE					(30u)			/* history buffer [minutes] for past pressure measurements */
 #define PRESSURE_SURFACE_EVA_WINDOW				(15u)			/* Number of entries evaluated during instability test. Used to avoid detection while dive enters water */
@@ -632,12 +631,9 @@
 	}
 	else
 	{
-		if(fabs(pressurevalue - pressure_average) < PRESSURE_JUMP_VALID_MBAR)
-		{
 			pressure_history_mbar[pressurewriteindex++] = pressurevalue;
 			pressurewriteindex &= 0x7;	/* wrap around if necessary */
 			retval = 1;
-		}
 	}
 
 	return retval;