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

    ESC failure error after SDK 1.1.2 upgrade

    ESCs
    3
    14
    1.2k
    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
      Alex Kushleyev ModalAI Team @smilon
      last edited by 19 Dec 2023, 16:03

      @smilon , I am glad that you got it working. I am a bit unclear about the following:

      • "Also performed a calibration and everything returns fine" -- which calibration you had to run?
      • "A lot of parameters were for some reason N/A and got filled in by this operation." -- are you talking about PX4 parameters?

      Regarding the motor sounds getting quieter, perhaps you had much older ESC params which had louder sounds - I believe we lowered the volume so that it's not too loud. When in doubt, the voxl-esc-scan.py and voxl-esc-verify-params.py scripts can verify that your ESC is configured properly.

      S 1 Reply Last reply 20 Dec 2023, 11:56 Reply Quote 0
      • S
        smilon @Alex Kushleyev
        last edited by smilon 20 Dec 2023, 11:57 20 Dec 2023, 11:56

        @Alex-Kushleyev Hi Alex, to clarify what you asked:

        • For ESC calibration I ran the voxl-esc-tools/voxl-esc-calibrate.py. This was not something I was prompted to do but since all of the voxl-esc scan/detect / voxl-esc-verify-params.py tools returned fine and was still getting "ESC failure" from QGC, I wanted to make sure that my ESC's are calibrated correctly.

        • The parameters I refer to were PX4 params. Unfortunately I have not captured the output but they were several "ESC_" prefixed params. From my understanding, after flashing SDK 1.1.2 I had to run voxl-esc-calibrate.py and then voxl-configre-mpa again in order to register them properly to PX4.

        Thank you!

        A 1 Reply Last reply 20 Dec 2023, 19:04 Reply Quote 0
        • A
          Alex Kushleyev ModalAI Team @smilon
          last edited by 20 Dec 2023, 19:04

          @smilon , voxl-esc-calibrate.py is a script that runs a test procedure in a single motor (with propeller mounted) to calibrate the behavior of the motor / propeller. This procedure only needs to be run once if you change motor or propeller type from a default configuration. The output of this script is just 3 coeficients a1, a2, a3 which you would need to manually enter into an ESC calibration xml file and then upload the xml paramer file to the ESC. Full details about the ESC calibration (when to do it and how) can be found here : https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-esc/-/blob/master/voxl-esc-tools/calibration.md?ref_type=heads

          If you are using standard motors and propellers (one of standard ModalAI drones), you do not need to run this calibration procedure.

          It sounds like you got it working, I believe voxl-configre-mpa took care of it. You can see what voxl-configure-mpa typically does here : https://docs.modalai.com/voxl-configure-mpa/ , which includes running voxl-esc to upload the latest firmware and params for a specific vehicle.

          C 1 Reply Last reply 22 Jan 2024, 18:43 Reply Quote 1
          • C
            Chase Riley @Alex Kushleyev
            last edited by 22 Jan 2024, 18:43

            @Alex-Kushleyev I am now experiencing this same issue. Updated to SDK 1.1.2 recently on our custom air vehicle and now in QGC I received the failsafe for ESC Failure. I am able to run voxl-esc-scan.py, and even upload firmware and params. I have other systems running on SDK 1.0 with the same firmware and params and the work fine. Should I do the voxl-configure-mpa as mentioned above?

            A 1 Reply Last reply 22 Jan 2024, 18:47 Reply Quote 0
            • A
              Alex Kushleyev ModalAI Team @Chase Riley
              last edited by Alex Kushleyev 22 Jan 2024, 18:49 22 Jan 2024, 18:47

              @Chase-Riley,

              you should check your PX4 params on the fresh system with 1.1.2, specifically the params related to the ESC and compare to those on your working SDK 1.0 (which have the same firmware and ESC params).

              My guess either missing PX4 params to enable the modalai ESC driver or incorrect baud rate for ESC in PX4 params

              voxl-configure-mpa script could help getting everything in order, however since you have a custom vehicle, our standard configurator script would not be able to set those custom px4 params for your vehicle.

              C 2 Replies Last reply 22 Jan 2024, 18:58 Reply Quote 0
              • C
                Chase Riley @Alex Kushleyev
                last edited by 22 Jan 2024, 18:58

                @Alex-Kushleyev All the voxl_esc params are the same in QGC.

                1 Reply Last reply Reply Quote 0
                • C
                  Chase Riley @Alex Kushleyev
                  last edited by 22 Jan 2024, 19:00

                  @Alex-Kushleyev I even tried to flash the sentinel params in QGC just to make sure I hadn't missed something and I am having the same issue.

                  A 1 Reply Last reply 22 Jan 2024, 19:37 Reply Quote 0
                  • A
                    Alex Kushleyev ModalAI Team @Chase Riley
                    last edited by 22 Jan 2024, 19:37

                    @Chase-Riley ,

                    Are the leds on ESC blinking while you run voxl-px4? they indicate communication to the host (VOXL2)

                    Also, some helpful commands:

                    • px4-listener esc_status

                    Also, if you run voxl-px4 in foreground

                    • systemctl stop voxl-px4
                    • voxl-px4 -d

                    then you can open another terminal / adb and run:

                    • px4-qshell voxl_esc status
                    • this will print status of voxl esc driver and the params (in the window where voxl-px4 -d is running)
                    C A 2 Replies Last reply 22 Jan 2024, 19:40 Reply Quote 0
                    • C
                      Chase Riley @Alex Kushleyev
                      last edited by 22 Jan 2024, 19:40

                      @Alex-Kushleyev I ran voxl-configure-mpa and was able to get the ESC to function again. Of course it caused other issues due to resetting files and params so I am now trying to work through setting everything back up. Im not sure what would have caused the mpa to need to be reconfigured because I had just done that obviously with the flash of SDK 1.1.2.

                      1 Reply Last reply Reply Quote 0
                      • A
                        Alex Kushleyev ModalAI Team @Alex Kushleyev
                        last edited by 23 Jan 2024, 19:18

                        This post is deleted!
                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Powered by NodeBB | Contributors