RB5 drone goes to a different height than I input
-
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!