How to alert pilot to a relay output?

In the UAS I have, there is a fail-safe system which cuts the propulsion power when a certain radio link is lost. This is to limit fly-away. However, it takes careful monitoring from the pilot to notice when this has happened, so that they can follow the appropriate reset procedure.

The fail safe system has a normally open relay output which closes when this state occurs, and I’d really like to provide an obvious alert to the pilot when this happens. If I were to wire this to provide a certain voltage to an ADC or GPIO pin, is there some way of sending something to the ground station (Mission Planner) over the telemetry that would do this? Or alternatively could it trigger an alert on the MinimOSD that is used to overlay telemetry on the FPV video?

I imagine that there might be other applications for this for sensors etc.

Any ideas gratefully received!

you will need to use a lua script to send an alert when the relay is triggered.

Many thanks for your suggestion. Looking at Lua Scripts — Copter documentation it appears that the command for the output to pilot is probably:

gcs:send_text( severity , text )

I think I need to study the following regarding analogue input:

I haven’t got my head around that yet but I’ll see what I can figure out.

Thanks again.

1 Like