Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. Ask your questions right here!
  3. How can I upload a python code to my m500 with voxl mavsdk

How can I upload a python code to my m500 with voxl mavsdk

Scheduled Pinned Locked Moved Ask your questions right here!
10 Posts 2 Posters 743 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • José QuintanillaJ Offline
    José QuintanillaJ Offline
    José Quintanilla
    Regular
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • tomT Offline
      tomT Offline
      tom
      admin
      wrote on last edited by
      #2

      @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é QuintanillaJ 1 Reply Last reply
      0
      • tomT Offline
        tomT Offline
        tom
        admin
        wrote on last edited by
        #3

        @José-Quintanilla https://docs.docker.com/storage/bind-mounts/

        1 Reply Last reply
        0
        • tomT tom

          @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é QuintanillaJ Offline
          José QuintanillaJ Offline
          José Quintanilla
          Regular
          wrote on last edited by
          #4

          @tom and I can do that from my computer using the adb shell? Im kinda new at this

          1 Reply Last reply
          0
          • tomT Offline
            tomT Offline
            tom
            admin
            wrote on last edited by
            #5

            @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

            1 Reply Last reply
            0
            • José QuintanillaJ Offline
              José QuintanillaJ Offline
              José Quintanilla
              Regular
              wrote on last edited by
              #6

              I still don't get it

              1 Reply Last reply
              0
              • José QuintanillaJ Offline
                José QuintanillaJ Offline
                José Quintanilla
                Regular
                wrote on last edited by
                #7

                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?

                1 Reply Last reply
                0
                • tomT Offline
                  tomT Offline
                  tom
                  admin
                  wrote on last edited by
                  #8

                  @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.

                  1 Reply Last reply
                  0
                  • José QuintanillaJ Offline
                    José QuintanillaJ Offline
                    José Quintanilla
                    Regular
                    wrote on last edited by José Quintanilla
                    #9

                    Hi tom, do you have another source I can look up? I still can't seem to understand how to do it

                    1 Reply Last reply
                    0
                    • tomT Offline
                      tomT Offline
                      tom
                      admin
                      wrote on last edited by
                      #10

                      @José-Quintanilla https://www.baeldung.com/ops/docker-mount-single-file-in-volume

                      1 Reply Last reply
                      0

                      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
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      ModalAI
                      Categories Recent Tags ModalAI.com Docs
                      © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups