We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is your feature request related to a problem? Please describe.
I want to convert a double to sensor_val
Describe the solution you'd like I would like a function double_to_sensor_value the way sensor_value_to_double exists.
Describe alternatives you've considered Googled allot.
Additional context None.
The text was updated successfully, but these errors were encountered:
I would like to get assigned to this issue
Sorry, something went wrong.
Any progress made on this? I'm currently using this function as an inline: https://repl.it/@JeffersonLee/zephyr-double-to-sensor-val#main.c
I included the test cases from: https://docs.zephyrproject.org/latest/reference/peripherals/sensor.html#c.sensor_value
A helper function sensor_value_from_double(struct sensor_value *, double) was added in commit 3c36cd4.
sensor_value_from_double(struct sensor_value *, double)
Closing.
No branches or pull requests
Is your feature request related to a problem? Please describe.
I want to convert a double to sensor_val
Describe the solution you'd like
I would like a function double_to_sensor_value the way sensor_value_to_double exists.
Describe alternatives you've considered
Googled allot.
Additional context
None.
The text was updated successfully, but these errors were encountered: