• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
ModalAI Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
    • Register
    • Login

    Flying multiple RB5s

    Ask your questions right here!
    2
    8
    471
    Loading More Posts
    • 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.
    • T
      tahawaru
      last edited by 27 Feb 2024, 08:14

      I want to fly more than ONE RB5(https://docs.modalai.com/qualcommflightrb5/) using 1 single laptop running Ubuntu 22.04.
      I'm using MAVSDK-python.
      My understanding at the moment is that the only the port 14550 is working.
      The examples given in https://github.com/mavlink/MAVSDK-Python or https://github.com/julianblanco/MAVFleetControl work for a single drone but not for more than 1.
      Any help on this topic?

      Best wishes,
      Massa

      M 1 Reply Last reply 27 Feb 2024, 16:12 Reply Quote 0
      • M
        Moderator ModalAI Team @tahawaru
        last edited by 27 Feb 2024, 16:12

        Please see the documentation for mavlink routing here: https://docs.modalai.com/mavlink/#mavlink-routing-on-voxl

        It shows how to configure the IP and port

        T 1 Reply Last reply 28 Feb 2024, 14:08 Reply Quote 0
        • T
          tahawaru @Moderator
          last edited by 28 Feb 2024, 14:08

          @Moderator
          "Up to 16 simultaneous external UDP connections can be established with voxl-mavlink-server. These can be connections to qGroundControl, MAVROS, MAVSDK, or any custom software on the same network as VOXL. voxl-mavlink-server listens for mavlink heartbeats on the standard mavlink port 14550 and opens a new link when it receives a heartbeat from a new IP. Each link receives all mavlink data coming from the autopilot and any messages received on the UDP port will be forwarded to the autopilot."

          Do you have a sample code to implement the UDP connections? or a reference for implementation?
          Can we change the port 14550 or add new ones? if yes, how?

          Best wishes,

          M 2 Replies Last reply 28 Feb 2024, 17:30 Reply Quote 0
          • M
            Moderator ModalAI Team @tahawaru
            last edited by 28 Feb 2024, 17:30

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • M
              Moderator ModalAI Team @tahawaru
              last edited by 28 Feb 2024, 17:46

              @tahawaru you'll need to change the code here: https://gitlab.com/voxl-public/voxl-sdk/services/voxl-mavlink-server/-/blob/master/src/gcs_io.c?ref_type=heads#L59

              if you consider making this a parameter, we are always open to merge requests!

              T 1 Reply Last reply 5 Mar 2024, 09:45 Reply Quote 0
              • T
                tahawaru @Moderator
                last edited by 5 Mar 2024, 09:45

                @Moderator
                1)

                I want to change line 59 on the file gcs_io.c only like this
                #define GCS_UDP_PORT 14552 // default in QGC

                then build the voxl-mavlink-server, replace voxl-mavlink-server_1.3.2_arm64.deb by the generated .deb file to the voxl sdk.
                Then flash 1 rb5 with it to test if it works.

                is this approach valid?

                I have cloned and opened the voxl-mavlink-server (from the link you've sent me above) with Visual Studio Code.
                I get the following error:
                cannot open source file "c_library_v2/common/mavlink.h" (dependency of "gcs_io.h")
                Could you help on this?

                Best wishes,

                M 1 Reply Last reply 5 Mar 2024, 15:45 Reply Quote 0
                • M
                  Moderator ModalAI Team @tahawaru
                  last edited by 5 Mar 2024, 15:45

                  @tahawaru did you follow the build instructions in the README?

                  T 1 Reply Last reply 6 Mar 2024, 07:20 Reply Quote 0
                  • T
                    tahawaru @Moderator
                    last edited by 6 Mar 2024, 07:20

                    @Moderator
                    I have followed the build instructions and got the voxl-mavlink-server built.
                    I'm currently testing it with different ports (other than 14550).

                    Thank you for your support.

                    1 Reply Last reply Reply Quote 0
                    1 out of 8
                    • First post
                      1/8
                      Last post
                    Powered by NodeBB | Contributors