Using gpio to switch LEDs. Launching a script while Copter is armed

See my fork of ArduCopter:Navio for gpio control of very bright LEDs. I use a green one when armed and a red one when the battery voltage goes low. It also launches a linux script when armed and kills it when unarmed - useful for recording photos only when actually flying. It needs this modification (or similar).

Hope you like it.


Wouldn’t it be easier to use a HAL provided class for GPIO?

Signal handling does need a lot of work. Thanks for the reminder! We’ve already discussed it with other developers but I guess nobody’s gotten around to do it.

OK - you are right (of course). Thanks for the feedback.