Controlling a Servo with a Lua Script

Following up on this post from earlier this week, Operating Servo from the get_emergency_stop() function using Lua in QGC

I wanted to see how we can use a lua script to detect an emergency stop command, then use the emergency stop command as a trigger to move Servo13, which will release a parachute. Is this possible with lua?

We have successfully implemented lua scripts to program our position/orientation lights, as well as updating our battery status lights from green, to yellow, to red based off of the battery level, but we have not been able to follow the example lua scripts to figure this out.

We do not want to use a Pi or companion computer with pymavlink if at all possible. We are using a Pixhawk 6C if it makes a difference.