MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / WindChill_F_mph

Function WindChill_F_mph

libraries/Temperature/temperature.cpp:160–166  ·  view source on GitHub ↗

US

Source from the content-addressed store, hash-verified

158
159// US
160float WindChill_F_mph(const float Fahrenheit, const float milesPerHour, const bool convert)
161{
162 if ((milesPerHour < 3.0) || (Fahrenheit > 50)) return Fahrenheit;
163 float windSpeed = milesPerHour;
164 if (convert) windSpeed = pow(milesPerHour, 0.16);
165 return 35.74 + 0.6125 * Fahrenheit + (0.4275 * Fahrenheit - 35.75) * windSpeed;
166}
167
168
169// METRIC - standard wind chill formula for Environment Canada

Callers 1

unittestFunction · 0.85

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.68