I want my script to run right after MAVProxy starts up and is done with it's checks.
I try to add it to mavinit.scr but it just tries to execute it before it runs all its initial checks leading to errors.
What is the alternative? I am running MAVProxy on a Raspberry pi connected to the PX4
You need to be a member of diydrones to add comments!
Replies
Hi Sj,
To run arbitrary python at startup the simplest method would be to write a new MAVProxy module, and load that module from the command line or from mavinit.scr.
There are lots of small modules to serve as examples in the modules/ directory in the MAVProxy sources.
Cheers, Tridge
Thank you Andrew for your help! Will check it out!
Quick query however - so to run custom modules as part of mavinit.scr, is there a predefined command structure? Apart from the "module load name"? (Just to understand this better).
Thanks again!