Repository navigation
Added a weather helper to make temperature, humidity and pressure calculations - #783
Conversation
|
I also have some Unit tests but I'm not sure where to put them. |
|
@MarkCiliaVincenti for tests please just create tests folder similar to the one here: |
|
@MarkCiliaVincenti LGTM after fixing test comments |
|
Note to self: I need to add methods to get the pressure from given sea-level pressure, temperature and altitude with overloaded methods (mean sea-level pressure of 1013.25 hPa and temperature of 15 C). This is used in Bmp180. Similarly we can get temperature from known altitude, pressure and sea-level pressure. |
Done. |
|
Dependency on #789. I made a test that should fail, but it's not failing. Until that fails we can't be sure that all unit tests are working. |
|
I confirm all tests are passing now. From my end you can go ahead and merge to master, @krwq |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
(restarted CI) |
And updated formula constants slightly.
... instead a lot of esoteric looking stuff with always "new" formulas.
Also takes humidity into account and uses a better approximation to the vapor pressure of water
Adjusted formulas according new source and updated test points
|
Great, are we ready to merge to master now? Edit: Sorry, closed PR by mistake. |
| @@ -0,0 +1,16 @@ | |||
| <Project Sdk="Microsoft.NET.Sdk"> | |||
There was a problem hiding this comment.
I can't remember if we discussed the fact of not having this project here and instead just have the *cs files and compile them in the projects we need them in, like the rest of Common. That said, I can address that in a separate PR to no longer block this one.
|
Thanks a lot to both @MarkCiliaVincenti and @pgrawehr for your hard work and getting this done. |
Covers the remainder of #752.
Streamlined multiple samples.