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

ModalAI Forum

  1. ModalAI Support Forum
  2. VOXL Dev Drones
  3. VOXL m500 Reference Drone
  4. Running MAVSDK directly on M500 and Python update

Running MAVSDK directly on M500 and Python update

Scheduled Pinned Locked Moved VOXL m500 Reference Drone
7 Posts 3 Posters 1.6k 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.
  • Steve SagerS Offline
    Steve SagerS Offline
    Steve Sager
    wrote on last edited by
    #1

    The team and I are developing a learning AI algorithm deployed on a raspberry pi to fly an obstacle course with the M500. We are only using the Hires camera frames and aircraft position data.
    We wanted to run our python code directly on your VOXL flight deck, but I'm having trouble updating the python version on the M500. Our AI is running on Ubuntu 20.04 with Python 3.9.15. Any way we can update this to something closer to 3.9?
    I also am using python based MAVSDK commands from the AI to control movement through the obstacle course, do you know if we can run this directly on the system as well?
    We are aware of the docker option and would just like to know if we can run on the aircraft without docker, or if we should go ahead and set up what we need to run in a docker container.
    Any feedback on the two questions is appreciated!

    Kind Regards,
    Steve

    1 Reply Last reply
    0
    • Chad SweetC Offline
      Chad SweetC Offline
      Chad Sweet
      ModalAI Team
      wrote on last edited by
      #2

      Have you looked at the tutorial on MAVSDK? https://docs.modalai.com/mavsdk

      Steve SagerS 1 Reply Last reply
      0
      • Alex KushleyevA Offline
        Alex KushleyevA Offline
        Alex Kushleyev
        ModalAI Team
        wrote on last edited by Alex Kushleyev
        #3

        You should be able to build python3 from source on target, for example i used the following instructions to build python 3.8.16 on VOXL1 Flight

        mkdir ~/python-build
        cd ~/python-build
        wget https://www.python.org/ftp/python/3.8.16/Python-3.8.16.tgz
        tar xzf Python-3.8.16.tgz
        cd Python-3.8.16
        ./configure --enable-optimizations
        make -j 8
        make altinstall
        
        ~ # python3.8 --version
        Python 3.8.16
        

        It took like 20 minutes to build it on VOXL1 -- tests took a while which generate some data for optimizations (--enable-optimizations enables this).

        You can build newer versions of Python using the same approach too, just check the path of .tgz archive (you can browse the http)

        Steve SagerS 1 Reply Last reply
        1
        • Chad SweetC Chad Sweet

          Have you looked at the tutorial on MAVSDK? https://docs.modalai.com/mavsdk

          Steve SagerS Offline
          Steve SagerS Offline
          Steve Sager
          wrote on last edited by
          #4

          @Chad-Sweet
          Thanks for the quick reply, our team looked into the docker examples, and know that is an option. We are looking to run MAVSDK python directly on M500's VOXL.
          We'll use docker if this cannot be done, since we need the architecture bloating to stay as low as possible due to the AI.

          1 Reply Last reply
          0
          • Chad SweetC Offline
            Chad SweetC Offline
            Chad Sweet
            ModalAI Team
            wrote on last edited by
            #5

            The Docker is 64-bit, so the code that runs inside is usually faster than the code that runs outside of the Docker

            Steve SagerS 1 Reply Last reply
            1
            • Alex KushleyevA Alex Kushleyev

              You should be able to build python3 from source on target, for example i used the following instructions to build python 3.8.16 on VOXL1 Flight

              mkdir ~/python-build
              cd ~/python-build
              wget https://www.python.org/ftp/python/3.8.16/Python-3.8.16.tgz
              tar xzf Python-3.8.16.tgz
              cd Python-3.8.16
              ./configure --enable-optimizations
              make -j 8
              make altinstall
              
              ~ # python3.8 --version
              Python 3.8.16
              

              It took like 20 minutes to build it on VOXL1 -- tests took a while which generate some data for optimizations (--enable-optimizations enables this).

              You can build newer versions of Python using the same approach too, just check the path of .tgz archive (you can browse the http)

              Steve SagerS Offline
              Steve SagerS Offline
              Steve Sager
              wrote on last edited by
              #6

              @Alex-Kushleyev
              Thanks a bunch for the quick guide we are successful in upgrading our system to the desired 3.9.15 python version.
              Would we be able to follow the same steps for MAVSDK python install to M500?
              We are trying to run MAVSDK python files directly in the VOXL data folder currently and receiving an invalid syntax error on the "async def run()" line. I was under the impression we had MAVSDK in the aircraft already from the functional diagram on the docs shown in the MAVSDK link.
              https://docs.modalai.com/mavsdk/
              Do we need to install Asyncio too to fix this error?

              1 Reply Last reply
              0
              • Chad SweetC Chad Sweet

                The Docker is 64-bit, so the code that runs inside is usually faster than the code that runs outside of the Docker

                Steve SagerS Offline
                Steve SagerS Offline
                Steve Sager
                wrote on last edited by
                #7

                @Chad-Sweet said in Running MAVSDK directly on M500 and Python update:

                The Docker is 64-bit, so the code that runs inside is usually faster than the code that runs outside of the Docker

                Oh, that's interesting, thanks for the insight. I'll share with the others, and let you know how it all goes.

                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