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

    RB5 drone goes to a different height than I input

    Qualcomm Flight RB5 5G Drone
    3
    12
    525
    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.
    • A
      Advait Pandit @Eric Katzfey
      last edited by

      @Eric-Katzfey

      Thank you Eric, I will also post this on the PX4 forum. Would you suggest putting the mavsdk script directly onto the drone to avoid errors/latency issues due to a udp/tcp connection? Is there a way to execute a script on the drone without connecting it with a usb cable. Thanks!

      Kind regards,

      Advait P

      Eric KatzfeyE 1 Reply Last reply Reply Quote 0
      • Eric KatzfeyE
        Eric Katzfey ModalAI Team @Advait Pandit
        last edited by

        @Advait-Pandit You can certainly run mavsdk directly on the drone.

        A 1 Reply Last reply Reply Quote 0
        • A
          Advait Pandit @Eric Katzfey
          last edited by

          @Eric-Katzfey

          Great, so how can I remotely trigger this script on the drone? I successfully pushed the script using 'adb push' onto the drone's file system but this obviously required a usb connection. Given that the drone needs to run a good distance away, I would need a way to 'adb shell' onto the drone without a usb cable, how could I do that?

          Thanks,

          Advait P

          tomT Eric KatzfeyE 2 Replies Last reply Reply Quote 0
          • tomT
            tom admin @Advait Pandit
            last edited by

            @Advait-Pandit If you have a network connection i.e. WiFi you can ssh onto the drone

            A 1 Reply Last reply Reply Quote 1
            • Eric KatzfeyE
              Eric Katzfey ModalAI Team @Advait Pandit
              last edited by

              @Advait-Pandit I would very strongly recommend testing all this with HITL first. Then try it on a real flight when it is working as expected.

              1 Reply Last reply Reply Quote 0
              • A
                Advait Pandit @tom
                last edited by

                @tom

                Thank you, I was able to ssh onto the drone via wifi. There is an issue with packages when trying to work with python scripts. I can't download python packages using pip even after creating a virtual environment. I get the error: -bash: pip: command not found

                Kind regards,

                Advait P

                tomT Eric KatzfeyE 3 Replies Last reply Reply Quote 0
                • tomT
                  tom admin @Advait Pandit
                  last edited by

                  @Advait-Pandit I think we only use pip3. I can't speak on venvs

                  1 Reply Last reply Reply Quote 0
                  • Eric KatzfeyE
                    Eric Katzfey ModalAI Team @Advait Pandit
                    last edited by

                    @Advait-Pandit It's much easier to use mavsdk inside a docker container where you can configure the proper environment.

                    1 Reply Last reply Reply Quote 0
                    • Eric KatzfeyE
                      Eric Katzfey ModalAI Team @Advait Pandit
                      last edited by

                      @Advait-Pandit Here is some documentation: https://docs.modalai.com/mavsdk/

                      A 1 Reply Last reply Reply Quote 0
                      • A
                        Advait Pandit @Eric Katzfey
                        last edited by

                        @Eric-Katzfey

                        Thank you for the advise, I will take a look!

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Powered by NodeBB | Contributors