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

    VOXL2-VOXL2IO-PX4 firmware

    Ask your questions right here!
    2
    3
    28
    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.
    • I
      Indra Jaganathan
      last edited by Indra Jaganathan

      I have written Dshot signal generation using FreeRTOS in STM32 using STM Cube IDE. It is working and I can control the motor which is connected to a 4 in 1 ESC. I want to connect this STM32F446RE to VOXL2 board and give the actuator inputs through PX4 firmware. I have written code in my STM32 to parse the inputs from VOXL2. Please explain how to connect. Can I replace the STM32 in place of M0065 and proceed? I tried to connect our own STM32 through J18. But I am not able to get any inputs. Is PX4 VOXL2-IO written such that it configures only M0065?
      @Alex-Kushleyev
      I referred to the below link.
      https://github.com/modalai/px4-firmware/tree/main/src/drivers/voxl2_io

      Alex KushleyevA 1 Reply Last reply Reply Quote 0
      • Alex KushleyevA
        Alex Kushleyev ModalAI Team @Indra Jaganathan
        last edited by

        @Indra-Jaganathan ,

        You were looking at an old version of the voxl2)_io driver. The latest version can be found here : https://github.com/modalai/px4-firmware/blob/voxl-dev/src/drivers/voxl2_io/voxl2_io.cpp

        Voxl2IO::get_version_info() function will query the hardware and software version of the M0065 board before the voxl2_io px4 module will successfully start up and send out control commands.

        The version check will make your testing slightly more complicated because you'd need to implement the extended version reply on your STM. You should also check whether the actual format of the commands that you implemented is correct (not from the old version).

        If you are able to compile the px4 code, you can just disable the version check in the code and the voxl2_io px4 module should let you send out the actuator commands.

        Let me know if you need more assistance.

        Alex

        I 1 Reply Last reply Reply Quote 0
        • I
          Indra Jaganathan @Alex Kushleyev
          last edited by

          @Alex-Kushleyev Thanks for the response. Let me try the newer version and come back

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