Hi,

I have only seen time-based WP missions, or just individual WP commands using the python scripting. I would would like to send a whole mission using a python script.

Just to quickly explain what I am trying to do: I am using a program to identify points of interest using a downward facing camera feed, from which I can create a waypoint mission file (in the right formatting and protocol). I am using Matlab to do some image processing, and I am using the TCP mavlink feed (ctrl-f in Mission Planner and using mavlink) to get the real time GPS information to attach the position to the image. Then I can pick out points on the image and give an estimate of the Lon and Lat. I create a WP file with these points at a predefined altitude. Then, with the press of a button, I would like my copter to follow those waypoints.

What I would like to do is run a python script (within Matlab) to upload and run that mission. I wanted to take advantage of the existing WP scripting of the autopilot. In other words, I am trying to avoid adapting the time-based method (that JoeM made) to use telemetry info and essentially do the same thing that the autopilot has already been programmed to do. I thought that this method would be easier, but I have not found a way to run a 'load WP file' command.

So the two main things that I am stuck on are:

- Can I run a python script from outside of the Mission Planner application? (I haven't found an answer to this question online, so I am making a simple motor test script to see if I can run it from Matlab)

- How can I upload and run a full waypoint mission file with the python scripting?

Thanks,

Michael

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

Join diydrones

Email me when people reply –

Replies

  • Hello michael i am trying to do the same thing but with the help of MATLAB can u help or advice on what i should do
  • Use mavproxy.
    • Thanks. I looked into it a little and saw that it had exactly what I needed to upload the waypoint file. But I haven't found out yet if I can run a command in mavproxy using a script in matlab. What I saw was that the commands needed to be entered in mavproxy "via the command line or the menu bar of the GUI console." Do you know anything about that?

This reply was deleted.

Activity

DIY Robocars via Twitter
How to use the new @donkey_car graphical UI to edit driving data for better training https://www.youtube.com/watch?v=J5-zHNeNebQ
Monday
DIY Robocars via Twitter
RT @SmallpixelCar: Wrote a program to find the light positions at @circuitlaunch. Here is the hypothesis of the light locations updating ba…
Nov 26
DIY Robocars via Twitter
RT @SmallpixelCar: Broke my @HokuyoUsa Lidar today. Luckily the non-cone localization, based on @a1k0n LightSLAM idea, works. It will help…
Nov 25
DIY Robocars via Twitter
@gclue_akira CC @NVIDIAEmbedded
Nov 23
DIY Robocars via Twitter
RT @luxonis: OAK-D PoE Autonomous Vehicle (Courtesy of zonyl in our Discord: https://discord.gg/EPsZHkg9Nx) https://t.co/PNDewvJdrb
Nov 23
DIY Robocars via Twitter
RT @f1tenth: It is getting dark and rainy on the F1TENTH racetrack in the @LGSVLSimulator. Testing out the new flood lights for the racetra…
Nov 23
DIY Robocars via Twitter
RT @JoeSpeeds: Live Now! Alex of @IndyAChallenge winning @TU_Muenchen team talking about their racing strategy and open source @OpenRobotic…
Nov 20
DIY Robocars via Twitter
RT @DAVGtech: Live NOW! Alexander Wischnewski of Indy Autonomous Challenge winning TUM team talking racing @diyrobocars @Heavy02011 @Ottawa…
Nov 20
DIY Robocars via Twitter
Incredible training performance with Donkeycar https://www.youtube.com/watch?v=9yy7ASttw04
Nov 9
DIY Robocars via Twitter
RT @JoeSpeeds: Sat Nov 6 Virtual DonkeyCar (and other cars, too) Race. So bring any car? @diyrobocars @IndyAChallenge https://t.co/nZQTff5…
Oct 31
DIY Robocars via Twitter
RT @JoeSpeeds: @chr1sa awesomely scary to see in person as our $1M robot almost clipped the walls as it spun at 140mph. But it was also awe…
Oct 29
DIY Robocars via Twitter
RT @chr1sa: Hey, @a1k0n's amazing "localize by the ceiling lights" @diyrobocars made @hackaday! It's consistently been the fastest in our…
Oct 25
DIY Robocars via Twitter
RT @IMS: It’s only fitting that @BostonDynamics Spot is waving the green flag for today’s @IndyAChallenge! Watch LIVE 👉 https://t.co/NtKnO…
Oct 23
DIY Robocars via Twitter
RT @IndyAChallenge: Congratulations to @TU_Muenchen the winners of the historic @IndyAChallenge and $1M. The first autonomous racecar comp…
Oct 23
DIY Robocars via Twitter
RT @JoeSpeeds: 🏎@TU_Muenchen #ROS 2 @EclipseCyclone #DDS #Zenoh 137mph. Saturday 10am EDT @IndyAChallenge @Twitch http://indyautonomouschallenge.com/stream
Oct 23
DIY Robocars via Twitter
RT @DAVGtech: Another incident: https://t.co/G1pTxQug6B
Oct 23
More…