sensor-validate.c
/**
 ***************************************************************************************************
 * Function Name: IsSensorReadinginput_NotaNumber
 * 
 * Function Description: Checks if the Sensor Inputs does not contain Not a number.
 *
 * \param  Inputs:- double* Senosor_Values
 *                  int NumOfValues
 *					
 *		   Outputs:- None
 *         
 * \return  Integer
 *          
 * \retval  NAN:- Senosor_Values array or Number of array elements (i.e.NumOfValues) that was passed has a data that is NAN.
 *          0:- Senosor_Values array or Number of array elements (i.e.NumOfValues) that was passed has a data that is not a NAN
 ***************************************************************************************************
 */


Function Description: Checks if the Sensor Inputs does not contain Not a number.



- None

\return  Integer

\retval  NAN:- Senosor_Values array or Number of array elements  that was passed has a data that is NAN.
0:- Senosor_Values array or Number of array elements  that was passed has a data that is not a NAN
Function Description : Checks if the Sensor Inputs does not contain Not a number . - None \ return Integer \ retval NAN : - Senosor_Values array or Number of array elements that was passed has a data that is NAN . 0 : - Senosor_Values array or Number of array elements that was passed has a data that is not a NAN
int IsSensorReadinginput_NotaNumber(double* Senosor_Values,int NumOfValues)
{
	int SensorArrayValueIndex=0;
	int its_a_NAN=2;
	 for( SensorArrayValueIndex=0; SensorArrayValueIndex<=(NumOfValues-1); SensorArrayValueIndex++)
		{
			if(isnanf(Senosor_Values[SensorArrayValueIndex]))
			{
				return its_a_NAN;
			}
		}
	 return 0;
}
int IsSensorReadinginput_NotaNumber ( double * Senosor_Values , int NumOfValues ) { int SensorArrayValueIndex = 0 ; int its_a_NAN = 2 ; for ( SensorArrayValueIndex = 0 ; SensorArrayValueIndex <= ( NumOfValues - 1 ) ; SensorArrayValueIndex ++ ) { if ( isnanf ( Senosor_Values [ SensorArrayValueIndex ] ) ) { return its_a_NAN ; } } return 0 ; }
Function Name: IsSensorReadinginput_NotaNumber
Function Name : IsSensorReadinginput_NotaNumber