mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-22 02:32:23 +00:00
* DropzoneModule hello world * Buttoning things up * Exclude by default * Upstream refs * Cleanup * Add modules folder to path * Case and path matters * Exclude from header * Guard
22 lines
478 B
C++
22 lines
478 B
C++
#include "UnitConversions.h"
|
|
|
|
float UnitConversions::CelsiusToFahrenheit(float celcius)
|
|
{
|
|
return (celcius * 9) / 5 + 32;
|
|
}
|
|
|
|
float UnitConversions::MetersPerSecondToKnots(float metersPerSecond)
|
|
{
|
|
return metersPerSecond * 1.94384;
|
|
}
|
|
|
|
float UnitConversions::MetersPerSecondToMilesPerHour(float metersPerSecond)
|
|
{
|
|
return metersPerSecond * 2.23694;
|
|
}
|
|
|
|
float UnitConversions::HectoPascalToInchesOfMercury(float hectoPascal)
|
|
{
|
|
return hectoPascal * 0.029529983071445;
|
|
}
|