Best way to send commands to lua script

Hi,

I’m using the built-in Simulation (Plane) in Mission Planner and running on windows. I’m curious if anyone has had any luck sending MAVLink commands that are accessible to a lua script.

For example, I’d like to send pitch rate, roll rate, yaw rate, throttle commands (10 Hz) and have my lua script commands these via set_target_throttle_rate_rpy(). I already have the lua script to follow commands, but the commands are currently hardcoded.

Thanks!

What you’re describing is just guided mode. You don’t need a script for that.