Lua Script for plane catapult launch

Hello Dear Fellows

I need help creating a lua script, it would be great if you guys could help me.

I have a plane with an internal combustion engine that is being catapult for takeoff. Before takeoff I have to raise the throttle to almost %100 to ensure that the plane has enough energy to climb after it leaves the catapult and starts its Auto mission and come back and land. I don’t want to do that manually anymore. I came across Lua Scripts but after reading and investigating deep in to the subject I felt that this is beyond my knowledge. So I thought of getting help from the great Ardupilot community. I would like a script that can read the rpm from one of the Gpio pins then wait for a certain amount of time(few seconds) then raise the throttle to %100. After that I can activate the catapult and send it to takeoff.

It would be great if you guys could help me get that done.

Many Thanks in Advance

@iampete any ideas here?

If you configure the plane for runway takeoff you should be able to obtain the desired behavior of spooling the motor prior to launch.

Engine will spool up when switching into auto mode or arming in auto if you co figure the plane to allow arming in automatic modes.

Edit: applies to copter only.

In runway takeoff even if you switch to auto still you need to initiate the takeoff by adding throttle.

I would keep the throttle high during takeoff just in case you need to take manual control.

PS no throttle takeoff is a copter thing.

I want to know the use case before diving in at all.