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

ModalAI Forum

  1. ModalAI Support Forum
  2. Software Development
  3. VOXL SDK
  4. MAVSDK on local laptop

MAVSDK on local laptop

Scheduled Pinned Locked Moved VOXL SDK
3 Posts 2 Posters 958 Views
  • 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.
  • D Offline
    D Offline
    dvPr1m3
    wrote on last edited by
    #1

    Hello,

    I have a Starling V2 drone and have been able to successfully execute the automated takeoff and landing MAVSDK example as described here:
    https://docs.modalai.com/mavsdk/#mavsdk-on-voxl2

    The drone is in station mode and both the drone and the ground control station PC (which is a laptop) have IPs assigned to them. I am able to ping the laptop from the drone and vice versa. QGroundcontrol works fine on the laptop. The laptop runs Ubuntu 22.04.

    I am looking to now deploy the same take off and landing example but executing it from within the laptop (instead of using the docker container on the drone). I used the Dockerfile within https://gitlab.com/voxl-public/voxl-docker-images/voxl-docker-mavsdk.git as my reference to install the required packages for mavsdk and was able to build and install mavsdk and the C++ examples. However, when I try connecting to the drone at the IP and port 14550, MAVSDK is not able to connect to the drone.

    Any help would be greatly appreciated. Thanks!

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dvPr1m3
      wrote on last edited by
      #2

      I got this working. I initially had the following in the takeoff_and_land.py script which did not work:

      await drone.connect(system_address="udp://192.168.1.44:14550")

      where 192.168.1.44 was the IP address of the drone, but when I changed it to the line below it worked!

      await drone.connect(system_address="udp://:14550")

      The IP address of my laptop is 192.168.1.100 and is listed as "primary_static_gcs_ip" in /etc/modalai/voxl-mavlink-server.

      My question though is how does the script on my laptop know that the drone is located at 192.168.1.44 in the second case and why does the first case where I specify the host within the connect() call not work?

      Thanks!

      Jetson NanoJ 1 Reply Last reply
      0
      • D dvPr1m3

        I got this working. I initially had the following in the takeoff_and_land.py script which did not work:

        await drone.connect(system_address="udp://192.168.1.44:14550")

        where 192.168.1.44 was the IP address of the drone, but when I changed it to the line below it worked!

        await drone.connect(system_address="udp://:14550")

        The IP address of my laptop is 192.168.1.100 and is listed as "primary_static_gcs_ip" in /etc/modalai/voxl-mavlink-server.

        My question though is how does the script on my laptop know that the drone is located at 192.168.1.44 in the second case and why does the first case where I specify the host within the connect() call not work?

        Thanks!

        Jetson NanoJ Offline
        Jetson NanoJ Offline
        Jetson Nano
        Veteran
        wrote on last edited by
        #3

        Hey @dvPr1m3 , How were you able to do it on VOXL 2?

        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