question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WeatherHelper Pressure functions should return UnitsNet

See original GitHub issue

Describe the bug

In the WeatherHelpers, all the Pressure functions should return UnitsNet. The CalculateAltitude are returning double while they should return Length

Steps to reproduce

see here: https://github.com/dotnet/iot/blob/3c4034781d158b26be0bc4866c34192d86bc4ef1/src/devices/Common/Iot/Device/Common/WeatherHelper.cs#L159

Expected behavior

Return a Length and not a double

Versions used

Source code from latest master baunch.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
cshungcommented, Sep 15, 2020

Hi maintainers - I would like to give this a try.

1reaction
joperezrcommented, Sep 15, 2020

Sounds great! let us know if you need any help building the repo or submiting your contribution, we are happy to help 😀

Read more comments on GitHub >

github_iconTop Results From Across the Web

WeatherHelper.CalculateBarometricPressure Method (Iot.Device ...
Calculates the barometric pressure from a raw reading, using the reduction formula from the german met service. This is a more complex variant...
Read more >
AXP192 - Enhanced single Cell Li-Battery and Power ...
The AXP192 has a Coulomb counter where the value is in mili Amperes per hour (this one is not yet using UnitsNet). You...
Read more >
Программируем микроконтроллеры ESP32 и STM32 на C# ...
set this to the current sea level pressure in the area for correct altitude readings. Pressure defaultSeaLevelPressure = WeatherHelper.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found