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
-
-
@tom and I can do that from my computer using the adb shell? Im kinda new at this
-
@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/bash
You can push your script to the VOXL with
adb push FILE_NAME PATH_ON_VOXL
and then add the-v
option 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
-