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

    VOXL2 - Cube Orange External Flight Controller Integration

    VOXL 2
    3
    14
    1040
    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.
    • Jetson NanoJ
      Jetson Nano @Eric Katzfey
      last edited by

      @Eric-Katzfey, I'm having a Starling drone setup on my custom airframe build and having integrated external FC, how do I do vehicle actuator setup in QGC once I'm done setting up external FC?

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

        @Jetson-Nano Once you are up and running on your external Orange Cube then VOXL 2 is just a conduit for mavlink packets. You should be able to interact with your Orange Cube normally. I do not know anything about Orange Cubes so can't answer how to do vehicle actuator setup in QGC with it.

        Jetson NanoJ 1 Reply Last reply Reply Quote 0
        • Jetson NanoJ
          Jetson Nano @Eric Katzfey
          last edited by Jetson Nano

          Hey @Eric-Katzfey , I saw this post and in this you have asked to add the driver to the build configuration, but how do I include the voxl_esc driver to a build of different board configuration?

          One more question, can I use the J5 connector of this to connect to the telemetry port of the FC?

          Eric KatzfeyE 2 Replies Last reply Reply Quote 0
          • Eric KatzfeyE
            Eric Katzfey ModalAI Team @Jetson Nano
            last edited by

            @Jetson-Nano To add the driver you need to modify the build configuration file (https://github.com/PX4/PX4-Autopilot/blob/main/boards/cubepilot/cubeorange/default.px4board). You can add the voxl-esc driver to that with CONFIG_DRIVERS_ACTUATORS_VOXL_ESC=y

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

              @Jetson-Nano Yes, you should be able to use the UART pins on that J5 connector.

              Jetson NanoJ 1 Reply Last reply Reply Quote 0
              • Jetson NanoJ
                Jetson Nano @Eric Katzfey
                last edited by

                Thank you @Eric-Katzfey , I'll test this out and get back to you on the result

                Jetson NanoJ 1 Reply Last reply Reply Quote 0
                • Jetson NanoJ
                  Jetson Nano @Jetson Nano
                  last edited by

                  Hey @Eric-Katzfey , I tested whatever you told,

                  1. I connected to the UART port on the J5 of M0141, and I tested, it is not working. When using a companion computer you can run
                  cat /dev/ttyHSx
                  

                  to get data from the FC, you'll get random symbols. I tried it and it is not working, when I tested yesterday with this I got the output as said previously, but still with J5 I tried the pymavlink part by changing the baud rate, but I am getting this output

                  voxl2:/home$ python3 mavlink_shell.py /dev/ttyTHS1
                  Connecting to MAVLINK...
                  

                  And what will be the port for the J5 connector of M0141, it is not listed in the below table.

                  f14a4425-60c1-4ecf-9f43-ea072727ba21-image.png

                  1. The VOXL ESC Driver part, I added that to the board config and built, after that I am not able to see any VOXL_ESC parameters.
                  Eric KatzfeyE 2 Replies Last reply Reply Quote 0
                  • Eric KatzfeyE
                    Eric Katzfey ModalAI Team @Jetson Nano
                    last edited by

                    @Jetson-Nano For the UART issue it's best to take things step by step. I would first verify the Orange Cube telemetry port by attaching it to a laptop or desktop computer. Make sure you can attach to QGC that way. And note the baudrate being used when it is working. That will validate the Orange Cube. Then validate the port of the add on card that you want to use with VOXL 2. For example, with M0141, validate /dev/ttyHS1 by attaching to a computer with a serial to UART cable and sending / receiving test data with a simple Python script. Once you are sure that the parts are working individually then you can hook them together and start debugging higher level things like voxl-mavlink-server.

                    Jetson NanoJ 1 Reply Last reply Reply Quote 0
                    • Eric KatzfeyE
                      Eric Katzfey ModalAI Team @Jetson Nano
                      last edited by

                      @Jetson-Nano For the VOXL ESC part, now that you have the driver in your build you need to start the driver. For testing you can just go to the Nuttx shell and run voxl_esc start -d <uart-port>. This will show you if it is starting correctly. Once it is working correctly you should see the VOXL_ESC_XXX parameters and then you need to add the device start into your Orange Cube start scripts.

                      1 Reply Last reply Reply Quote 0
                      • Jetson NanoJ
                        Jetson Nano @Eric Katzfey
                        last edited by Jetson Nano

                        Thank you @Eric-Katzfey , it worked, I tested each port individually and made sure the individual ports are working, and then integrated the two and is working fine.

                        Here is my solution if anyone needs.

                        I used Telem 1 port of the cube and the UART pins on the J5 connector of USB2 Type A Breakout (M0141) . The parameters I set for MAV 1 is here

                        214a9a31-6231-4a59-bb93-3048e5fc9c5b-image.png

                        33012de2-cc53-484e-99de-dc534345f369-image.png

                        After disabling the voxl-px4 services, Connect to VOXL wifi and check QGC, you'll get the FC data in which the cube is used as the flight controller.

                        The VOXL ESC, I haven't tested it yet, I'll test and get back if any problems.

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