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

    Updating ESC firmware but no build.sh file

    VOXL SDK
    2
    13
    62
    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.
    • J
      JackHammer
      last edited by

      The make_package.sh file in https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-esc/-/tree/master?ref_type=heads claims that build.sh needs to be run first but this script doesnt appear to be included? Can someone point me to where that would be? I am new to building debian packages so I may just be missing something simple.

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

        @JackHammer , the instruction do not specify that build.sh is needed for this project.

        64a3bac0-4686-4020-9e72-7ca6e9ec54c6-image.png

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

          @Alex-Kushleyev In the first few lines of the make_package.sh, it states that you must run build.sh first to build the binaries.

          5d2cfd2b-3e46-44e1-90bf-dd502f7c801c-image.png

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

            @JackHammer , I see. thanks for clarifying. This is a copy / paste error. In this project, you don't need to build anything.

            Alex

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

              @Alex-Kushleyev Okay cool, thanks for letting me know. The instructions from that readme file state you dont need the voxl-cross image, but then the following instructions appear to use it. Do these instructions change at all when I am running through wsl? I am getting some error and I just want to be sure to cover my bases

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

                @JackHammer , it should just work out of the box:

                voxl-esc$ ./make_package.sh 
                Package Name:  voxl-esc
                version Number:  1.5.4
                [sudo] password for *******:
                starting building Debian Package
                dpkg-deb: building package 'voxl-esc' in 'voxl-esc_1.5.4_arm64.deb'.
                DONE
                

                Note that sudo inside the script is not required, but it is there for historical reasons..

                Alex

                J 2 Replies Last reply Reply Quote 0
                • J
                  JackHammer @Alex Kushleyev
                  last edited by

                  @Alex-Kushleyev Gotcha, it appears to start up an then right after the starting building line I get:

                  dpkg-deb: error: maintainer script 'postinst' has bad permissions 744 (must be >=0555 and <=0775)

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

                    @Alex-Kushleyev Got it working out of a docker container. I did have another question though. Do I need to remove anything off the voxl board (old voxl-esc package) before pushing this one over ssh?

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

                      @JackHammer

                      That error is weird, since 555 <= 744 <= 755. I think there is some issue with the leading 0 in the perms... Have not seen that before.

                      You should not have to remove the old voxl-esc package, all the files in the package will be overwritten.

                      I am assuming you are just making a custom version of the package? If not, you can always get the latest package from : http://voxl-packages.modalai.com/dists/qrb5165/dev/binary-arm64/

                      Alex

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

                        @Alex-Kushleyev No actually I was just trying to rebuild the latest version as support for the recent ESC I recieved was added just 2 months ago, and until I build and moved the package, I was unable to see it. Didnt realize that it was just online for me to download, thank you for that link.

                        The reason I got a new esc is because one of my coworkers crashed the drone and now the motors skip when we try to run voxl-esc spin . 3 of the motors are "iffy" and will skip a few times and sometimes spin normally while one of the motors just works fine. We received the new ESC, installed it, updated the voxl-esc package, and the odd behavior persists. We havent updated the parameters yet.

                        We are wondering how do we get the correct parameters for our motor setup into the options for the drone? We can see 6 different options and none match our 2203 1500KV motors. They are black and there is an option that says black-motors but that feels incorrect?

                        Please advise.

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

                          @JackHammer , can you please tell me which drone you have an post a picture of the motor just in case? I can point you to the correct parameters for your motor.

                          Alex

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

                            @Alex-Kushleyev We are running the starling 2 max drone with the 2203.5 KV1500 motors. The body is black with a gold/brass colored rim around the top edge of the rotor. I am not sure that I am able to take and post photos from inside the work place.

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

                              @JackHammer no problem.

                              This should be the esc param file for the Starling 2 Max motor : https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-esc/-/blob/dev/voxl-esc-params/D0012_Starling_MAX/esc_params_m0129_f2203_5_1500kv_7x3.7x3.xml

                              The param file should also be present in /usr/share/modalai/voxl-esc-params

                              Do you know how to update the esc parameters?

                              systemctl stop voxl-px4
                              cd /usr/share/modalai/voxl-esc-tools
                              ./voxl-esc-updload-params.py -p <full path to params file>
                              

                              After updating the params, you can run a "power ramp test", as shown here : https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-esc/-/blob/dev/voxl-esc-tools/doc/low_kv_motor_tuning.md?ref_type=heads#power-ramp-test . Use id=255 to spin all motors (and you can limit power to 80%)

                              ./voxl-esc-spin.py --id 255 --power 80 --ramp-time 3.0 --timeout 3.5 --enable-plot 1 --cmd-rate 250
                              

                              Since you can't display the plot on voxl2, a plot will be saved as html, which you get download from voxl2 and view in a browser.

                              You can do it without propellers (for safety). If all the motors are working properly, the four rpms will be very close to the same as the power ramps (within 100-200 rpm). Otherwise, you may have a bad motor that was damaged during the crash.

                              https://www.modalai.com/products/starling-2-max-replacement-parts?variant=49704826896688

                              Alex

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