-
Notifications
You must be signed in to change notification settings - Fork 71
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
Simple adc_get_value function non-existant #116
Comments
Yeah, I agree. Would be helpful for development and testing. Which return value would you like to have? The raw ADC reading? Or a value in millivolts? Maybe a function for both... I'm actually working on the ADC myself at the moment because we experienced some inaccuracies (maybe caused by a bug in the calibration). So I might implement it straight away. |
At the moment we are trying to get raw values to start our development chain. Values in milivolts would be interesting as well, but maybe they should be thought within the context of a wider vision. Right now we have structures that hold values, device tree definitions that hold multpliers/dividers and all of that is put together through .c and .cpp drivers. I think (it's only my opinion) that the overall architecture of the code is too complex.
All the base measurement functions should be easily available and all the base action functions as well. That's ADC and HRTimer right now. |
Both, I think it would take a function that returns a raw value in daq_driver.c, and functions that convert those values in daq.cpp... |
When developing new functions from the already existing ones, it is very easy to get lost on the code. Simple functions, such as adc_get_value do not exist (or we have not been able to find them). Maybe a certain set of basic functions should be defined so that everyone can build their applications from them.
The text was updated successfully, but these errors were encountered: