-
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
Temperature and humidity sensor support #18910
Conversation
Did you see #18474? I was thinking adding this as |
I didn't know that. I only knew the 'hygrometer' mavlink message. Mentioned PR receives data from a UAVCAN source. I would therefore suggest to use the uORB message from PR #18474 ( Is there any assumption when it will be merged? To just make a rebase. |
It was waiting for the DSDL to move to DroneCAN. We should be able to bring it in now. |
@roman-dvorak |
How do you start this? Do you want to add a new parameter?
PX4-Autopilot/ROMFS/px4fmu_common/init.d/rc.sensors Lines 146 to 150 in 3f17acd
|
457df22
to
fb4c075
Compare
This comment has been minimized.
This comment has been minimized.
50271ef
to
ea70d80
Compare
@dagar, can you review again? |
@roman-dvorak please rebase. We can merge as soon as GitHub Actions completes |
SHT3x driver, clean code changes leading to merge TFHT with CUAV hygrometer Delete humidity_temperature.msg Update CMakeLists.txt rename 'atmosphefir_quantities' to 'hygrometers' fix logging removed cmake files fix PR issues
ea70d80
to
1c8a015
Compare
Hi,
i created a driver for the SHT3x sensor by Senserion. Thanks to this, meteorological conditions can be measured in flight. There are several temperature sensors, but most of them are housed in some packaging and the temperature stabilization takes a very long time or is heated by the surrounding electronics.
Humidity is another important factor in some flights.
Describe problem solved by this pull request
The problem is solved by creating an I2C driver for the sensor and a message (temperature, humidity) with enabled logging. The driver can re-establish the connection and re-initialize the sensor after accidentally disconnecting the sensor.
A new message has been created for sending and logging this data. In the next PR, I would like to create a translation into the MAVLink message.
Test
The functionality was verified with the SHT31 sensor in the TFHT01 board.