Home        Store        Docs        Blog

ArduSub firmware for px4-bluerov fail to detect external pressure sensor

(Andreas Hansen) #1


Hi all,

When booting up my px4 that is running the latest ardusub firmware (px4-bluerov), it fails to detect the external pressure sensor (Bar30).

Should I modify any parameters in order to make the px4 read the external rather than the internal pressure sensor?

My question is very similar to the previous forum thread:
except that my question is targeted at px4 rather than bbb.

Best Regards,

(Andreas Hansen) #2

In ArduSub/system.cpp I have verified that barometer.num_instances() returns 1 when booting up the PixHawk.

(Andreas Hansen) #3

Update: I found the error. For some reason, it turns out that if I choose to compile the ArduSub code using Windows tools (as described http://ardusub.com/developers/#how-to-get-the-code), the SCALED_PRESSURE2 will not appear in my MAVLink Inspector in QGC. If I compile the exact same code using the Linux method from Ubuntu, the SCALED_PRESSURE2 appears. This is a bit of a mystery to me.

My next question:
Will the SCALED_PRESSURE2 value be available from any of the MAVROS topics?
When I run:
$ rostopic echo /mavros/imu/atm_pressure/fluid_pressure
it will echo out the SCALED_PRESSURE value from the internal barometer of the PixHawk.

(Rusty) #4

Hi Andreas,

I’m glad you figured this out but that’s very strange that the build doesn’t work right under Windows. I think everybody working on this code right now is developing in Linux or Mac so we haven’t run into that.

Thanks for finding this. We’ll investigate whatever might cause it. Let us know if you figure it out.

I’m not familiar enough with mavros to know the answer to your question, but since SCALED_PRESSURE2 is a standard MAVLink message I would guess it is supported or would be easy to add.


(Andreas Hansen) #5

Hi Rusty,

From now on I will stick to the Linux tools :-), but I will let you know if I figure out the problem.
I have asked the question in the ROS forum instead.

Best Regards,