Hello dear forumers,
We are currently working on an AUV system. And we have the Bar30 depth sensor. We are using the Pixhawk 2.4.8’s I2C port to access to the Bar30 depth sensor. And we want to access the depth value ,which is coming from the depth sensor, through mavlink messages.
First:
I tried the SCALED_PRESSURE2 message, but i couldn’t see anything such labelled as 'depth'
in there. There is only 'press_abs'
value looked like it might be helpful to get depth value through it, i am guessing that it might require to make some calculations to get the actual depth value from it however i couldn’t find what calculations i do need.
Second:
I tried the GLOBAL_POSITION_INT message, and again i couldn’t see anything such labelled as'depth'
in there. I thought 'hdg'
value might be helpful to calculate h
from the P=hdg
formula. But as much as i know GLOBAL_POSITION_INT message using the internal sensors of Pixhawk2.4.8, not the Bar30 sensor connected from I2C port. So it seemed me useless to implement. Because i want the Bar30 datas, not the Pixhawk’s internal sensor datas.
Third:
I tried the VFR_HUD message. I am currently using VFR_HUD message to access to the 'heading'
value of Pixhawk. As i read on the net, a guy says that the message is including 'depth'
data, but again i couldn’t see anything such labelled as'depth'
in there. And i also think that VFR_HUD message using the internal sensors of Pixhawk2.4.8
Last but not least:
I found some python examples for Bar30 (ms5837-python) i tried to install the library to my Ubuntu system but i failed to install it through terminal, so i also couldn’t get any results from there.
Thanks for your time to reading this, any help will be appreciated.