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

    Using VOXL ESCs with PX4

    Ask your questions right here!
    2
    8
    444
    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.
    • S
      Suvasis M
      last edited by 29 Aug 2022, 18:59

      hi

      I am building my drone, I want to use "VOXL ESCs with PX4" for my drone. Is there any documentation on how to use VOXL ESCs with Nvidia processors.e, the los setup?

      Thanks.
      suvasis

      1 Reply Last reply Reply Quote 0
      • M
        modaltb ModalAI Team
        last edited by 29 Aug 2022, 19:03

        Hi @Suvasis-M ,

        The source code for the driver is here:
        https://github.com/PX4/PX4-Autopilot/tree/main/src/drivers/actuators/modalai_esc

        If you have access to a UART port on the nvidia, it's likely you can port this driver over fairly easily but this isn't something we've done.

        Thanks!

        1 Reply Last reply Reply Quote 0
        • S
          Suvasis M
          last edited by 29 Aug 2022, 19:11

          hi,

          I have Jetson AGX orin processor, it has UART on M.2 KeyE. Ok then, looks like I can port the driver. Is there any ubuntu OS specifics? I have 20.04 version.

          Thanks.
          suvasis

          1 Reply Last reply Reply Quote 0
          • M
            modaltb ModalAI Team
            last edited by 29 Aug 2022, 19:38

            Hi @Suvasis-M ,

            Its setup in the native form for Nuttx RTOS, which starts the driver up as a task, and has some specific PX4/Nuttx related calls, but you should be able to find equivalents for Ubuntu, so I don't believe there would be any blockers.

            We create a packet and send it here:
            https://github.com/PX4/PX4-Autopilot/blob/main/src/drivers/actuators/modalai_esc/modalai_esc.cpp#L1120

            and parse feedback here:
            https://github.com/PX4/PX4-Autopilot/blob/main/src/drivers/actuators/modalai_esc/modalai_esc.cpp#L1151

            1 Reply Last reply Reply Quote 0
            • S
              Suvasis M
              last edited by 30 Aug 2022, 21:35

              @modaltb said in Using VOXL ESCs with PX4:

              PX4/Nuttx related calls,

              hi,

              Which are the PX4/Nuttx related calls from the actuator?

              Thanks.
              suvasis

              1 Reply Last reply Reply Quote 0
              • M
                modaltb ModalAI Team
                last edited by 1 Sept 2022, 16:17

                You should be able to get by with standard POSIX stuff like open/read/write.

                On our DSP, we had to get rid of a poll that was being used and we have some delays in place instead.

                S 1 Reply Last reply 5 Sept 2022, 18:01 Reply Quote 0
                • S
                  Suvasis M @modaltb
                  last edited by 5 Sept 2022, 18:01

                  @modaltb

                  hi,

                  Where is the DSP code? Is it exposed?

                  Thanks
                  suvasis

                  1 Reply Last reply Reply Quote 0
                  • M
                    modaltb ModalAI Team
                    last edited by 6 Sept 2022, 16:18

                    We have the full toolchain and setup dockerized here: https://gitlab.com/voxl-public/rb5-flight/rb5-flight-px4-build-docker

                    Following that setup, you will install the Hexagon SDK which provides more info on the lower level stuff.

                    But, the PX4 code as shown above is what runs on the DSP.

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