Home        Store        Docs        Blog

Leak detection using multiple sensors and separate leak reporting



How can I use multiple(three leak sensors) with separate boards and report different strings such as “Leak detected in Electronics Hull”, “Leak detected in Battery Hull”?

(Jacob) #2

Hi, there is support for up to three independent leak detector inputs, there is no support for distinguishing between which one has fired on the user end. You will need to modify the firmware or add a feature request on github.com/ardupilot/ardupilot.

Why do you want this behavior? Would your action be any different if the leak were in the battery hull vs the electronics hull?

Leak detection in multiple enclosure

Yeah.I just would like to know exactly where the leak has occurred.


@jwalser I am on a short schedule. So I can’t wait till the feature request get accepted. But I am ready to dig into the firmware to see if something happens. Can you just give me short info on where to go searching for this in the firmware?

(Jacob) #5

You will need to add the interface to check individual sensor status to the LeakDetector class:

You can check/handle the status of individual sensors here: https://github.com/ArduPilot/ardupilot/blob/master/ArduSub/failsafe.cpp