From df62fc0d7952af2cbe3b1e6e09acd5507218e522 Mon Sep 17 00:00:00 2001 From: mycarda Date: Thu, 16 Sep 2021 10:23:01 +0100 Subject: [PATCH] testing updates --- libraries/SondeLib/RS41.cpp | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/libraries/SondeLib/RS41.cpp b/libraries/SondeLib/RS41.cpp index 62955fd..c81fc50 100644 --- a/libraries/SondeLib/RS41.cpp +++ b/libraries/SondeLib/RS41.cpp @@ -757,7 +757,7 @@ int RS41::decode41(byte *data, int maxlen) uint32_t pressureMain = getint24(data, 560, p+27); uint32_t pressureRef1 = getint24(data, 560, p+30); uint32_t pressureRef2 = getint24(data, 560, p+33); - #if 1 + #if 0 Serial.printf( "External temp: tempMeasMain = %ld, tempMeasRef1 = %ld, tempMeasRef2 = %ld\n", tempMeasMain, tempMeasRef1, tempMeasRef2 ); Serial.printf( "Rel Humidity: humidityMain = %ld, humidityRef1 = %ld, humidityRef2 = %ld\n", humidityMain, humidityRef1, humidityRef2 ); Serial.printf( "Humid sensor: tempHumiMain = %ld, tempHumiRef1 = %ld, tempHumiRef2 = %ld\n", tempHumiMain, tempHumiRef1, tempHumiRef2 ); @@ -787,36 +787,6 @@ int RS41::decode41(byte *data, int maxlen) } if ( validHumidity && validExternalTemperature ) { - #if 1 - // write complete calibration values - Serial.println( "************* All calibration values ********************") - Serial.printf( "refResistorLow: %f, refResistorHigh: %f\n", refResistorLow, refResistorHigh ); - Serial.printf( "refCapLow: %f, refCapHigh: %f\n", refCapLow, refCapHigh ); - for ( int i = 0; i < sizeof(taylorT); i++) { - Serial.printf( "taylorT[%d]: %f\n", i, taylorT[i] ); - } - Serial.printf( "calT: %f\n", calT ); - for ( int i = 0; i < sizeof(polyT); i++) { - Serial.printf( "polyT[%d]: %f\n", i, polyT[i] ); - } - for ( int i = 0; i < sizeof(calibU); i++) { - Serial.printf( "calibU[%d]: %f\n", i, calibU[i] ); - } - for ( int i = 0; i < sizeof(matrixU) / sizeof(matrixU[0]); i++) { - for ( j = 0; j < sizeof(matrixU[0]); j++) - Serial.printf( "matrixU[%d,%d]: %f\n", i, matrixU[i][j] ); - } - } - for ( int i = 0; i < sizeof(taylorTU); i++) { - Serial.printf( "taylorTU[%d]: %f\n", i, taylorTU[i] ); - } - Serial.printf( "calTU: %f\n", calTU ); - for ( int i = 0; i < sizeof(polyTrh); i++) { - Serial.printf( "polyTrh[%d]: %f\n", i, polyTrh[i] ); - } - Serial.println( "**********************************************************") - #endif - sonde.si()->tempRHSensor = GetRATemp( tempHumiMain, tempHumiRef1, tempHumiRef2, calibration->value.calTU, calibration->value.taylorTU, calibration->value.polyTrh ); Serial.printf("Humidity Sensor temperature = %f\n", sonde.si()->tempRHSensor );