This isn’t great but I am short on time this week. It will take a couple hours of doing for me to dig back into my script and figure out all the variables differences and what not. I don’t know how experienced you are with python but hopefully this can serve as a basis for you start figuring it out. If you can tell me exactly what you are trying to do I might maybe be able to build you a working script sometime next week.
waypoint_upload_dronekit.txt (5.0 KB)
My recommendation however, is to grab some coffee and dedicate a couple days to the dronekit documentation and figuring it out. It took me a couple weeks to get it figured out but its definitely worth it. I also did mine on my raspberry pi which I recommend as well.
Below are links to the resources I used. I built a GUI for my rover so that I may record waypoints while driving the rover manually. Then I can upload and set the mission to the pixhawk. All done with a simple GUI on the RPi which I built a cyberdeck for with a touchscreen. I’m not quite sure I’m ready to give up that entire script yet. Mainly because I’m still working on it and when I let it go I want it to be plug and play.
Ask questions from here and I will try to help when I can.
Best course on python ive found on udemy:
Albert’s advice is the simplest and most straight forward.