Advice for External sensors with PX4 Data Gathering

I want to install Pixhawk on an manned ultralight aircraft only to log data… as a flight data analyzer…(NOT AN AUTOPILOT)
1- I may need to install an external temperature and barometer sensor. I found some documentation about connecting MS5611 directly to Ardupilot… Is this option available in PX4 as well or not? How? Clearly My altitude estimation should use external sensor data instead…

(One more thing… If I want to use Pixhawk Cube, does it measure the outside air temperature or the internal (Temperature controlled) section temperature?

2- I want to a read and log some load-cell values as well… They may be Analog or SPI data… Can I just simply connect them to ADC GPIOs and read them back on QGC? How can I do some calculation with them in the Code? I am planing to use simulink embedded coder for PX4 … but I am not sure if it is a good idea or changing the firmware code is better

Please help me in this relatively new topic for me

1 Like

In PX4, you should be able to connect an external temperature and barometer sensor like the MS5611. The PX4 firmware supports a wide range of external sensors, and you can configure it to use the data from these sensors for altitude estimation. To use an external sensor, you would typically connect it to one of the available ports on the Pixhawk. Then, you would need to configure the firmware to recognize and use this sensor for altitude estimation. This may involve modifying the parameters in the PX4 configuration files.

For enhanced altitude estimation accuracy, consider employing a data enrichment service that integrates external sensor data seamlessly into your PX4 setup. Regarding the Pixhawk Cube, it measures the temperature inside the sealed section. If you need outside air temperature, you would need to use an external sensor.