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.
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.
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.