ExWindspeed v0.1.0-beta ExWindspeed.Conversions View Source

Provides functions for converting between formats.

Examples

iex> ExWindspeed.Conversions.from_counts_to_volts(100)
0.3225806451612903

iex> ExWindspeed.Conversions.from_volts_to_ms(0.52)
2.4299999999999997

iex> ExWindspeed.Conversions.from_ms_to_mph(2.0250000000000004)
4.53

iex> ExWindspeed.Conversions.from_celsius_to_fahrenheit(1)
33.8

Link to this section Summary

Functions

Converts from celsius to fahrenheit. The final temperature value is trimmed to 2 decimal places.

Converts counts to volts

Converts from meters per second to miles per hour. The final miles per hour value is trimmed to 2 decimal points.

Converts volts to meters per second

Link to this section Functions

Link to this function

from_celsius_to_fahrenheit(temp) View Source
from_celsius_to_fahrenheit(float()) :: float()

Converts from celsius to fahrenheit. The final temperature value is trimmed to 2 decimal places.

Link to this function

from_counts_to_volts(counts) View Source
from_counts_to_volts(integer()) :: float()

Converts counts to volts

Link to this function

from_ms_to_mph(ms) View Source
from_ms_to_mph(float()) :: float()

Converts from meters per second to miles per hour. The final miles per hour value is trimmed to 2 decimal points.

Link to this function

from_volts_to_ms(volts) View Source
from_volts_to_ms(float()) :: float()

Converts volts to meters per second