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

    VOXL ESC Mini

    ESCs
    2
    6
    181
    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.
    • 0
      0x45
      last edited by

      Hi,

      Model: VOXL ESC Mini 4-in-1 with Built-in Power Module
      Firmware: modalai_esc_firmware_m0129_3_v0_39_RC10_eb6fb500.bin

      I'm not using all of the ESC outputs and I'd have set them to disable.
      Although, the current firmware on the PX4 does not support the disable feature. I was wondering if there was a particular reason that this capability does not exist?

      Screenshot 2024-03-15 093307.png

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

        @0x45 , there is no particular reason. I think we just assumed that all 4 motors would be used. Is this something that is needed for your application? it is not a limitation of the ESC firmware itself, instead the PX4 driver for it.

        1 Reply Last reply Reply Quote 0
        • 0
          0x45
          last edited by

          For my application it would be preferred. I saw where it is in the PX4 driver - I just was hesitant to make the changes and wanted confirmation from the ModalAi team that there isn't any issues on the ESC side if I were to make the change.

          Thanks for the speedy reply and I'll proceed on if there is no issues.

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

            @0x45 I believe that if you allow DISABLED to be the setting for the channels 1-4, then the mixer will output 0 for those channels (based on this : https://github.com/modalai/px4-firmware/blob/voxl-dev/src/drivers/actuators/voxl_esc/voxl_esc.cpp#L56)

            My guess is that when you arm, the disabled channels will just stay at zero, causing the voxl esc driver to just send 0 rpm target for that ESC channel.

            The worst that could happen is that mixer could send MAX_RPM to the disabled channel (but i don't see how that would happen).

            If you want to try it out, i suggest making the change to allow the DISABLED actuators and then in updateOutputs just print the values and force them to zero before sending out to ESC in order to avoid any unexpected rpm values to be sent out : https://github.com/modalai/px4-firmware/blob/voxl-dev/src/drivers/actuators/voxl_esc/voxl_esc.cpp#L1162

            I think you can just comment out this lines:
            https://github.com/modalai/px4-firmware/blob/voxl-dev/src/drivers/actuators/voxl_esc/voxl_esc.cpp#L318 and
            https://github.com/modalai/px4-firmware/blob/voxl-dev/src/drivers/actuators/voxl_esc/voxl_esc.cpp#L336 (ret = PX4_ERROR;) -- this will disable the errors

            If you want to wait a few days, i can try it out sometime next week..

            0 1 Reply Last reply Reply Quote 0
            • 0
              0x45 @Alex Kushleyev
              last edited by

              @Alex-Kushleyev
              Sounds good I'll give it a shot. Thanks!

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

                @0x45 if you get it working and you would like to share your change, we can test and incorporate into the driver. That could potentially make it easier for you to not have to use a custom px4 build for your application.

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