RB5 drone goes to a different height than I input
-
When I give a takeoff command to RB5 drone using QGC and set a particular height (in meters), it does not go to the set height but always ends up going to what I am assuming is the default height. This causes major issues as I my lab is underground and the drone has hit the top of the the safety net and dropped a couple of times. Can you please advise me on this.
Thank you!
Advait P
-
@Advait-Pandit I'm guessing that this could be more of a PX4 issue than an RB5 issue so I would recommend also posting this on the PX4 forum to see if you can get some feedback there. Also, I would recommend trying your scenario using HITL testing first to make sure everything works as expected. If it works fine in HITL but not during an actual flight then perhaps there is an RB5 issue. https://docs.modalai.com/voxl2-PX4-hitl/
-
Thank you Eric, I will also post this on the PX4 forum. Would you suggest putting the mavsdk script directly onto the drone to avoid errors/latency issues due to a udp/tcp connection? Is there a way to execute a script on the drone without connecting it with a usb cable. Thanks!
Kind regards,
Advait P
-
@Advait-Pandit You can certainly run mavsdk directly on the drone.
-
Great, so how can I remotely trigger this script on the drone? I successfully pushed the script using 'adb push' onto the drone's file system but this obviously required a usb connection. Given that the drone needs to run a good distance away, I would need a way to 'adb shell' onto the drone without a usb cable, how could I do that?
Thanks,
Advait P
-
@Advait-Pandit If you have a network connection i.e. WiFi you can
ssh
onto the drone -
@Advait-Pandit I would very strongly recommend testing all this with HITL first. Then try it on a real flight when it is working as expected.
-
Thank you, I was able to ssh onto the drone via wifi. There is an issue with packages when trying to work with python scripts. I can't download python packages using pip even after creating a virtual environment. I get the error: -bash: pip: command not found
Kind regards,
Advait P
-
@Advait-Pandit I think we only use
pip3
. I can't speak on venvs -
@Advait-Pandit It's much easier to use mavsdk inside a docker container where you can configure the proper environment.
-
@Advait-Pandit Here is some documentation: https://docs.modalai.com/mavsdk/
-
Thank you for the advise, I will take a look!