Mission Planner python scripting

Hi, I'm a new to both Mission Planner and python scripting.

I want to be able to set way points autonomously using python, and eventually be able to do more.  There are several other threads discussing how to do this, and I tried following the tutorials, but I can't seem to get any of them to work.

Here are a few of the things I am confused about.

  1. Do I need to be connected to a Pixhawk or an Ardupilot in order to control Mission Planner with a script?  For Instance, if I just want to go into Flight Mode and set a few way points, I don't think I should need to be connected to the Pixhawk for that.
  2. Do I need to use Mission Planner's built in script tab, under 'Flight Data', or can I just run a script outside of Mission Planner?  I ask this question because when I do upload a script into the built-in feature, I can tell it's running (the scriptconsole displays printed lines), but I don't see anything else happening (way points aren't showing in flight mode).  How do I tell if something is happening or not?  And when I try to run a script in my python terminal, it says that I can't import the MissionPlanner module.  (I have Mission Planner 1.3.19 installed if that info helps)

A clear, step by step description of how to properly script with mission planner would be super helpful.  I hope someone can help! Thanks.

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Activity

Chris Anderson liked Zara Mae Pickering's profile
May 21
Azjeg liked Azjeg's profile
Apr 27
Benewake LiDAR liked Benewake LiDAR's profile
Apr 12
Gremsy liked Gremsy's profile
Mar 12
More…