Hi,

I have developed a library that allows DroneCell to be used with APM. That part works fine, however there are massive problems getting the stock mission Planner to

  • Connect reliably
  • Read missions reliably
  • Write missions reliably

Apparently MP was not made for or tested with connections with some latency and data losses. I had some experiences of the same kind with an XBee connection near the end of its range too.

I have looked at the code, hacked around and come up with a Mission Planner and a change in APM firm that make the communications much tougher. I can now read and write 25 waypoint missions over a very bad link :) Before I could only do like 8 WPs and that with lots of failed attempts.

Basically the MP changes were

  • Extending timeouts
  • Increasing retry counts
  • Accept connection after only a single heartbeat received

(if connecting still does not go well because the reading of all the params fails or if you don't care about params but just want to locate your UAV, there is still the CTRL-T secret keyboard shortcut, which connects without reading parameters).

The single change in APM firmware consists of going to the GCS_Mavlink.pde class, find the constructor and change the two timeouts there to 8000 milliseconds instead of 1000. If you don't know how to compile and upload the changes to APM, use the opportunity to learn it or look for help.

The revised MP is here:

https://github.com/dongfang/MissionPlanner/

I will add a Publish.zip file shortly where all the installation stuff is. If installation fails (I know nothing about Windows installation) then locating the ArdupilotMegaPlanner10.exe file and copying it into an existing installation or launching it directly worked for me.

The title bar of the modified MP has "(dongfang mod)" added to the text.

Of course I hope that changes to allow comms to work over links with latency will be added to the official releases, but until then there is this.. I will update to newer versions upon request.

Regards

Soren

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

Join diydrones

Email me when people reply –

Replies

  • I have re-committed the publish.zip. The first one did not have the "(dongfang mod)" title bar, instead it had "mav 1.1". Now it is "(dongfang mod)".

    • Would you mind updating to the latest version?

      I also tried telemetry over GPRS, but gave up on it, because it was impossible to read or write a mission with more than a few waypoints. I would love to give GPRS another try.

  • Awesome nice work! I'll be testing this shortly.

This reply was deleted.

Activity

DIY Robocars via Twitter
Practice virtual race this Saturday; the real thing will be on Oct 3 https://www.meetup.com/DIYRobocars/
yesterday
DIY Robocars via Twitter
yesterday
Derrick Davies liked lisa TDrones's profile
yesterday
DIY Robocars via Twitter
Monday
DIY Robocars via Twitter
RT @SahikaGenc: AWS DeepRacer & Hot Wheels Track https://youtu.be/4H0Ei07RdR4 via @YouTube
Sep 14
DIY Robocars via Twitter
Sep 8
DIY Robocars via Twitter
RT @davsca1: We are releasing the code of our Fisher Information Field, the first dedicated map for perception-aware planning that is >10x…
Sep 8
DIY Robocars via Twitter
RT @SmallpixelCar: How this works: 1)object detection to find cones in single camera image, 30 frames/sec on @NVIDIAEmbedded Xavier. 2)comp…
Sep 8
DIY Robocars via Twitter
RT @SmallpixelCar: Use two color cones to guide the robocar. No map needed, on onsite training needed. Just place the cones and it will fol…
Sep 7
DIY Robocars via Twitter
Sep 7
DIY Robocars via Twitter
RT @roboton_io: Great to see http://roboton.io running at 60fps on the cheapest #chromebook we could find! #edtech #robotics #educat…
Sep 3
DIY Robocars via Twitter
RT @openmvcam: Crazy in-depth article about using the OpenMV Cam for Astrophotography: https://github.com/frank26080115/OpemMV-Astrophotography-Gear https://t.co/BPoK9QDEwS
Sep 3
DIY Robocars via Twitter
RT @openmvcam: Hi folks, it's finally here! Our first draft of our Arduino Interface Library is out! It works over SoftwareSerial, Hardware…
Sep 3
DIY Robocars via Twitter
RT @chr1sa: Please let them have an open API. This would be perfect for @DIYRobocars races https://twitter.com/NintendoAmerica/status/1301513099707658246
Sep 3
DIY Robocars via Twitter
RT @SmallpixelCar: Lanenet pretty much used all my GPU power on @NVIDIAEmbedded Xavier since I optimized with tensorRT. I need to run anoth…
Sep 3
DIY Robocars via Twitter
RT @LyftLevel5: Our @kaggle competition on Motion Prediction for Autonomous Vehicles is now live! Experiment with the largest-ever self-dri…
Aug 24
More…