Hi @angelorisonk ,
Unfortunately it isn’t doable straight-away.
There are currently no analog baros support in ardupilot at all.
I can think of three alternatives:
- Use this PR and write a lua script to provide pressure using a reading from the analog sensor,
- Implement a new AP_Baro backend that takes lua script readings, similar to the link above
- Implement a new AP_Baro backend for analog baros.
You will also need to keep this in mind, ArduSub requires a BARO_TYPE_WATER driver to be happy.