-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
ADC: replace ioctl with uorb message #14087
ADC: replace ioctl with uorb message #14087
Conversation
371ed98
to
c6f9b61
Compare
Device ID is set but not used. All logic kept same as before. This should be safe to merge. |
There are two things to be checked:
Confirmed. There is no problem. |
c6f9b61
to
1c9451e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good rework, thanks.
What is the testing you have done?
1126845
to
b445912
Compare
9807abc
to
9188c4a
Compare
This is the last reference to that parameter. But I cannot find anything in the code which provides ADC specification such as sample precision and voltage reference. 0.0008 mostly indicate that the board is using 3v3 as vref with 2^12 bits precision but I cannot find anything related in code. |
Currently I have no hardware to test. This pr is diverged from a previous one so my test code on my platform could not be uploaded. If needed, I could commit them temporarily and then revert them for a clean PR. |
They should not have been added to that board, you can just remove them from there (the default should be used). |
Acknowledged. I'm contacting dagar to get ADC reference voltage properly provided for each board. |
88e63e3
to
a14a1d0
Compare
f6eae80
to
da0a336
Compare
Solved conflict with master 4c1adc0 |
c4d7c6b
to
882acd8
Compare
It's ready. @dagar |
1. remove cdev implement and use uORB publication 2. publish all channels instead of only battery voltage moniting channel 3. correct vref to 3.0f 4. temporarily disable test function
This would imporve the performance
Critical bug fix 1 Co-Authored-By: David Sidrane <[email protected]>
Critical bug fix 2 Co-Authored-By: David Sidrane <[email protected]>
Co-Authored-By: Beat Küng <[email protected]>
Critical bug fix Co-Authored-By: Beat Küng <[email protected]>
analog differential pressure sensor reads from uORB(sensors.cpp)
ba94c6a
to
b431f72
Compare
This is spitted from #13833 .
This PR focus on replace ioctls with uORB message. Some existing modules/drivers are affected.