Description
Hello everyone,
As I was getting quite deeper into Dronekit API, I would like to ask several questions about the specific example of Drone Delivery.
Since at the time of writing Drone Delivery example was designed to work together with SITL (getting the heartbeat necessary to run the example after connecting to MAVProxy on SITL), the example works perfectly fine as intended when running it with SITL. To advance the example and realize it on a real vehicle, I have made a few modifications on the code where home location is changed, input of connect and launch methods are modified. I have also added a Return To Launch page where the simulated vehicle actually returns to launch when invoked. After trying and succeeding on simulated version of the example, I have tried to connect to an APM flight controller through the Drone Delivery example, though I had to run MAVProxy and connect to the vehicle and get the necessary parameters, otherwise the example won’t work (motors won’t arm, copter won’t pass the pre-arm check). I could manage to successfully take off using Drone Delivery example after I’ve got the parameters from the MAVProxy and change the flight mode to “GUIDED” by writing ‘mode guided’ on the MAVProxy command line, and shutting down the MAVProxy before running the example. I have a few questions on these remarks:
What could be the possible reason for the example’s not working when I do not run MAVProxy before running the example?
Given the fact that I could manage to get the drone to arm and take off from the example, what could be the possible reason for the “Go” not working while the quad hovers? (it is useful to mention that I’m able to make it work on the example running with SITL, and I also think that my UAV has no problems related to connection, getting MAVLink messages etc. since I am able to use all the features of MAVProxy on the UAV.)
Since there was no “Land” or “RTL” buttons on the original example, I would like to ask whether if this example was intended to work on a real UAV, or was it designed to work solely together with SITL. If so, your advice and suggestions on what to add and what to focus on would really help developing the example and enabling it for a real UAV usage.
drone_delivery.py.zip
command.html.zip
landit.html.zip