Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: convert salinity and relativeHumidity in VDM from percentage values to ratio #254

Merged
merged 2 commits into from
May 10, 2024

Conversation

panaaj
Copy link
Member

@panaaj panaaj commented Apr 17, 2024

Issue: (#253)
salinity and relativeHumidity paths in the specification (environment group) are defined with the unit ratio.

Values from the VDM sentence are written to these signal K paths as a number representing a percentage (e.g. 80) rather than a ratio (i.e. 0.8).

This PR converts the received values to a ratio so they align with the specification.

@panaaj panaaj added the fix label Apr 17, 2024
@panaaj panaaj requested a review from tkurki April 17, 2024 07:34
@tkurki
Copy link
Member

tkurki commented May 9, 2024

Something is off with the VDM test timestamp??

@panaaj
Copy link
Member Author

panaaj commented May 10, 2024

Fixed the test.

@tkurki tkurki changed the title Fix: Convert percentage values to ratio. Fix: convert salinity and relativeHumidity in VDM from percentage values to ratio May 10, 2024
@tkurki tkurki merged commit 542c4ea into master May 10, 2024
5 checks passed
@tkurki tkurki deleted the fix-vdm-humidity-value branch May 10, 2024 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants