Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
RobTillaart committed Nov 12, 2023
1 parent e6789ff commit 80f0d37
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions temperature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ float dewPoint(float celsius, float humidity)
{
// Calculate saturation vapour pressure
// ratio 100C and actual temp in Kelvin
float A0 = 373.15 / (273.15 + celsius);
float AA0 = 373.15 / (273.15 + celsius);
// SVP = Saturation Vapor Pressure - based on ESGG() NOAA
float SVP = -7.90298 * (A0 - 1.0);
SVP += 5.02808 * log10(A0);
SVP += -1.3816e-7 * (pow(10, (11.344 * ( 1.0 - 1.0/A0))) - 1.0 );
SVP += 8.1328e-3 * (pow(10, (-3.49149 * (A0 - 1.0 ))) - 1.0 ) ;
float SVP = -7.90298 * (AA0 - 1.0);
SVP += 5.02808 * log10(AA0);
SVP += -1.3816e-7 * (pow(10, (11.344 * ( 1.0 - 1.0/AA0))) - 1.0 );
SVP += 8.1328e-3 * (pow(10, (-3.49149 * (AA0 - 1.0 ))) - 1.0 ) ;
SVP += log10(1013.246);

// calculate actual vapour pressure VP;
Expand Down

0 comments on commit 80f0d37

Please sign in to comment.