I am planning to build a UAV sprayer system that will trigger an RTL if the the liquid inside the tank reach a certain level. My idea is to install a float switch inside the tank and maybe hook up the connection to one of the aux ports of the Pixhawk. And have the FC read the pwm values of the switch with out using a companion computer.Unfortunately, I could not find the answer despite scouring the internet and wiki for information.
Is this something you guys have come across with? If so could you gave hints as how to approach this problem? Thank you.