How can I upload a python code to my m500 with voxl mavsdk
-
So I recently was able to use the sdk function on my m500 drone, and I want to modify one of the codes in my computer and then try it on my drone, but I don't really know how to upload the new code to the docker image, Does anyone know how to do it?
-
-
@José-Quintanilla You'll want to mount whatever directory or files you want inside the container using something like:
docker run -v /host/directory:/container/directory -
@José-Quintanilla You'd just modify this command that you're using:
docker run -it --rm --privileged --net=host gcr.io/modalai-public/voxl-mavsdk-python:v1.1 /bin/bashYou can push your script to the VOXL with
adb push FILE_NAME PATH_ON_VOXLand then add the-voption to the docker command to point to where the script lives on VOXL and where you'd like it to live inside the docker container -
I still don't get it
-
so instead of docker run -it --rm --privileged --net=host gcr.io/modalai-public/voxl-mavsdk-python:v1.1 /bin/bash it woul be: docker run -v --rm --privileged --net=host gcr.io/modalai-public/voxl-mavsdk-python:v1.1 /bin/bash?
-
@José-Quintanilla No, look at the doc page I sent, you have to specify the location of the file on VOXL and well as where you'd like it to mount inside the container. This is a very common docker use-case and there is plenty of documentation out there to show you how to do it.
-
Hi tom, do you have another source I can look up? I still can't seem to understand how to do it
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login