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

DIY Drones via Twitter
First impressions of Tinkergen MARK robocar https://ift.tt/36IeZHc
Nov 16
DIY Drones via Twitter
First impressions of the Intel OpenBot https://ift.tt/36qkVV4
Nov 10
DIY Drones via Twitter
Getting started with Robocars https://ift.tt/2HWsudU
Nov 1
DIY Drones via Twitter
RT @chr1sa: The US government just approved 5 US-made drones for purchase, all based on the @Dronecode @PX4Autopilot standard. Great news f…
Aug 20
DIY Drones via Twitter
RT @MarvelmindMaxim: Extreme precision for 60 swarming robots. #marvelmind #autonomousrobotics #robotics #swarmrobotics #rtls #ips #indoor…
Aug 3
DIY Drones via Twitter
RT @MarvelmindMaxim: Precise (±2cm) tracking for racing boats and autonomous boats. Works outdoor and indoor. #autonomous #AutonomousVehic…
Aug 3
DIY Drones via Twitter
RT @MarvelmindMaxim: Helping PixHawk folks to fly autonomous quadcopters using PX4 and ArduPilot. https://marvelmind.com/drones/ Equally suitab…
Aug 3
DIY Drones via Twitter
RT @davsca1: Here is the video of the performance. This paper was a huge group effort and more than one year of work, where we combined and…
Jul 16
DIY Drones via Twitter
RT @chr1sa: My talk on PX4 and FAA certification is coming up at 1:45 PST today on the PX4 Dev Summit livestream. Includes some cool new st…
Jul 7
DIY Drones via Twitter
RT @seesharp: I'm tuned into the PX4 / Dronecode free live conference. Great stuff. Microsoft AirSim talk in 10 minutes. https://t.co/0zbZ2…
Jul 6
DIY Drones via Twitter
RT @chr1sa: Here's today's best times in the @DIYRobocars/@donkey_car virtual race of AI cars compared to last month's race on the same tra…
Jun 20
DIY Drones via Twitter
Jun 19
DIY Drones via Twitter
The difference between proper RC cars and toys (when you’re turning them into robots) https://ift.tt/2MUTvxd
Jun 14
DIY Drones via Twitter
RT @Struktur3D: We have just posted on @DIYDrones for the first time in a long time. Continuing with our search for a #lasercutting service…
Jun 5
DIY Drones via Twitter
Review of the new Nivida Jetson NX for robocars https://ift.tt/36TrS0G
Jun 2
DIY Drones via Twitter
RT @chr1sa: Somehow I missed this, but last week @Nvidia released a new version of its Isaac robot development framework. Lots of new Lidar…
May 31
More…