Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. VOXL Compute & Autopilot
  3. VOXL 2
  4. Help with Voxl2 PID Tune problem

Help with Voxl2 PID Tune problem

Scheduled Pinned Locked Moved VOXL 2
24 Posts 5 Posters 7.6k Views 6 Watching
  • 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.
  • Alex KushleyevA Alex Kushleyev

    Hi @bensusana ,

    There seems to be an issue somewhere in PX4 that is causing all the commanded ESC outputs to drop to 1500 (min_rpm) for one cycle (but very often). See below the plot of Actuator Outputs (what PX4 sends) and also the RPM feedback. The RPM feedback is logged at much lower frequency, but also the ESC does not respond fast enough to drop the RPM significantly, since the 1500 rpm command is only present for one update cycle and then it goes back to normal (see second plot). Sending such jumpy commands to ESC would definitely cause oscillations since ESC will try to drop to 1500 rpm for all 4 channels and then back to normal flight RPM in a few milliseconds. Since the ESC is running motor control at 10khz, it will definitely have a chance to slow down a bit even in a few milliseconds.

    I am not sure if we have seen this issue before, perhaps others can comment @modaltb @Eric-Katzfey . Maybe it is due to something custom that you added, @bensusana ?

    Alex


    Actuator outputs and RPM feedback from ESC
    a3fd35f2-b194-4de9-a1f7-df9e77c288fe-image.png

    Zoomed in actuator outputs
    d3bea05f-902d-4090-b0d4-f1422e183411-image.png

    bensusanaB Offline
    bensusanaB Offline
    bensusana
    Contributor
    wrote on last edited by
    #4

    @Alex-Kushleyev hi alex
    i noticed that , as you can see i added link for a similar problem from px4 forum ,
    beside the frame motors and the receiver all of the components are from modalAi nothing custom ,
    for fact, we have same builds with voxl1 that's working great, the only differences are modalAi esc and Io board.

    i have 3 quads 2 of them with voxl2 flight-deck and have the same actuator outputs...

    1 Reply Last reply
    0
    • bensusanaB bensusana

      @bensusana one more thing , all of the F55 ModalAi esc's on our builds were fully calibrated as explained in your calibrate procedure .

      Alex KushleyevA Offline
      Alex KushleyevA Offline
      Alex Kushleyev
      ModalAI Team
      wrote on last edited by
      #5

      @bensusana

      Yes this seems like exactly the same problem. No clear solution, i suspect this was it : “ or because there is another module in PX4 also publishing RC (at 0) when it shouldn’t. The last one might be the most likely actually.”

      Can you make sure there is not another RC module publishing rc control message?

      bensusanaB 2 Replies Last reply
      0
      • Alex KushleyevA Alex Kushleyev

        @bensusana

        Yes this seems like exactly the same problem. No clear solution, i suspect this was it : “ or because there is another module in PX4 also publishing RC (at 0) when it shouldn’t. The last one might be the most likely actually.”

        Can you make sure there is not another RC module publishing rc control message?

        bensusanaB Offline
        bensusanaB Offline
        bensusana
        Contributor
        wrote on last edited by
        #6

        @Alex-Kushleyev the only thing comes in mind its the receiver (frsky/crossfire tried them both) working through voxl IO board ,
        i was thinking to connect it directly to j19 as shown in your description .
        any other ideas for testing will be much appreciate , its a major problem causing all of our developing drone grounded .
        csrf.JPG

        1 Reply Last reply
        0
        • Alex KushleyevA Alex Kushleyev

          @bensusana

          Yes this seems like exactly the same problem. No clear solution, i suspect this was it : “ or because there is another module in PX4 also publishing RC (at 0) when it shouldn’t. The last one might be the most likely actually.”

          Can you make sure there is not another RC module publishing rc control message?

          bensusanaB Offline
          bensusanaB Offline
          bensusana
          Contributor
          wrote on last edited by
          #7

          @Alex-Kushleyev just noticed that the other guy that opend the issue in px4 forum using ModalAi rb5 and same version as we using .
          https://discuss.px4.io/t/weird-actuator-output-logs-problems-tuning/32839.

          Chad SweetC 1 Reply Last reply
          0
          • bensusanaB bensusana

            @Alex-Kushleyev just noticed that the other guy that opend the issue in px4 forum using ModalAi rb5 and same version as we using .
            https://discuss.px4.io/t/weird-actuator-output-logs-problems-tuning/32839.

            Chad SweetC Offline
            Chad SweetC Offline
            Chad Sweet
            ModalAI Team
            wrote on last edited by Chad Sweet
            #8

            @bensusana which version of px4 are you running? PX4 changed the px4io protocol in 1.14 and that board will no longer work correctly. You should connect your csrf receiver directly to VOXL 2 if using PX4 1.14

            bensusanaB 1 Reply Last reply
            0
            • Chad SweetC Chad Sweet

              @bensusana which version of px4 are you running? PX4 changed the px4io protocol in 1.14 and that board will no longer work correctly. You should connect your csrf receiver directly to VOXL 2 if using PX4 1.14

              bensusanaB Offline
              bensusanaB Offline
              bensusana
              Contributor
              wrote on last edited by
              #9

              @Chad-Sweet Hi chad
              we using v1.12.31 , but thanks for the heads up , our next step was moving to 1.14 and we need that board so obviously we cant use it with this version .

              1 Reply Last reply
              0
              • bensusanaB Offline
                bensusanaB Offline
                bensusana
                Contributor
                wrote on last edited by bensusana
                #10

                hi @Alex-Kushleyev
                OK, we got a significant improvement but it comes with a lot of questions and other problems that came up .

                first , i took the IO board out and connected the crossfire directly to J19 as shown at picture in the previous massage.

                then i configured the receiver to work in mavlink mode and started the voxl px4 service with voxl-px4 -r

                (as i founded in other topic in the forum) .

                as a result we got pretty smooth flight and actuator output looks great :
                https://review.px4.io/plot_app?log=dd187870-0fb2-4dc9-a0f6-694c4c3bdea2

                now since we need this IO board how can we solve this problem ?

                moving to work with mavliink causes a lot of missing mavlink messages and tabs in qgc mavlink inspector, but this problem should be in a new topic (i will publish later ) .

                looking forward for any help/solution .

                Alex KushleyevA 1 Reply Last reply
                0
                • bensusanaB bensusana

                  hi @Alex-Kushleyev
                  OK, we got a significant improvement but it comes with a lot of questions and other problems that came up .

                  first , i took the IO board out and connected the crossfire directly to J19 as shown at picture in the previous massage.

                  then i configured the receiver to work in mavlink mode and started the voxl px4 service with voxl-px4 -r

                  (as i founded in other topic in the forum) .

                  as a result we got pretty smooth flight and actuator output looks great :
                  https://review.px4.io/plot_app?log=dd187870-0fb2-4dc9-a0f6-694c4c3bdea2

                  now since we need this IO board how can we solve this problem ?

                  moving to work with mavliink causes a lot of missing mavlink messages and tabs in qgc mavlink inspector, but this problem should be in a new topic (i will publish later ) .

                  looking forward for any help/solution .

                  Alex KushleyevA Offline
                  Alex KushleyevA Offline
                  Alex Kushleyev
                  ModalAI Team
                  wrote on last edited by
                  #11

                  @bensusana

                  Please let us test it on our end to see if we can reproduce the issue. I will ask our team to set up a quick test as soon as possible.

                  Alex

                  ModeratorM 1 Reply Last reply
                  0
                  • Alex KushleyevA Alex Kushleyev

                    @bensusana

                    Please let us test it on our end to see if we can reproduce the issue. I will ask our team to set up a quick test as soon as possible.

                    Alex

                    ModeratorM Offline
                    ModeratorM Offline
                    Moderator
                    ModalAI Team
                    wrote on last edited by
                    #12

                    @bensusana can you please diagram your desired system architecture? Why do you need the IO board?

                    bensusanaB 1 Reply Last reply
                    0
                    • ModeratorM Moderator

                      @bensusana can you please diagram your desired system architecture? Why do you need the IO board?

                      bensusanaB Offline
                      bensusanaB Offline
                      bensusana
                      Contributor
                      wrote on last edited by
                      #13

                      @Moderator hi
                      first of all we use it to connect RC receiver and we also need the other pwm pins for servo operate .

                      we tried to connect the crossfire nano directly to j19 and change the mode to mavlink (just to see how the drone perform ),

                      we succeed to do that only with voxl-px4 -r command that we do every restart (im guessing there is an easy way to do it if you can guide us through )
                      but that causes a lot of mavlink massages and status tabs like battery status and a bunch of other tabs in qgc mavlink inspector to disappear .

                      if there is some guidelines that i missed to work properly with crossfire receiver without IO board for now ,
                      that will give us a lot of space for keeping developing .

                      Eric KatzfeyE 1 Reply Last reply
                      0
                      • bensusanaB bensusana

                        @Moderator hi
                        first of all we use it to connect RC receiver and we also need the other pwm pins for servo operate .

                        we tried to connect the crossfire nano directly to j19 and change the mode to mavlink (just to see how the drone perform ),

                        we succeed to do that only with voxl-px4 -r command that we do every restart (im guessing there is an easy way to do it if you can guide us through )
                        but that causes a lot of mavlink massages and status tabs like battery status and a bunch of other tabs in qgc mavlink inspector to disappear .

                        if there is some guidelines that i missed to work properly with crossfire receiver without IO board for now ,
                        that will give us a lot of space for keeping developing .

                        Eric KatzfeyE Offline
                        Eric KatzfeyE Offline
                        Eric Katzfey
                        ModalAI Team
                        wrote on last edited by
                        #14

                        @bensusana Can you provide some more information to help us rule out any obvious configuration issues? For example, a px4 log from journalctl -b -u voxl-px4 --no-pager on voxl2?

                        bensusanaB 1 Reply Last reply
                        0
                        • Eric KatzfeyE Eric Katzfey

                          @bensusana Can you provide some more information to help us rule out any obvious configuration issues? For example, a px4 log from journalctl -b -u voxl-px4 --no-pager on voxl2?

                          bensusanaB Offline
                          bensusanaB Offline
                          bensusana
                          Contributor
                          wrote on last edited by bensusana
                          #15

                          @Eric-Katzfey
                          hi eric , i uploaded the log here (too many characters )
                          https://we.tl/t-36gYH3HTue
                          if you guys can support us through email it will be much faster .
                          thanks.

                          1 Reply Last reply
                          0
                          • Eric KatzfeyE Offline
                            Eric KatzfeyE Offline
                            Eric Katzfey
                            ModalAI Team
                            wrote on last edited by Eric Katzfey
                            #16

                            @Eric-Katzfey I don't see anything obviously wrong in either the flight log or the startup log. The log of the input_rc topic doesn't show any obvious dropouts or other problems but it is not logged at full rate so it's possible that it didn't capture something bad.

                            bensusanaB 1 Reply Last reply
                            0
                            • Eric KatzfeyE Eric Katzfey

                              @Eric-Katzfey I don't see anything obviously wrong in either the flight log or the startup log. The log of the input_rc topic doesn't show any obvious dropouts or other problems but it is not logged at full rate so it's possible that it didn't capture something bad.

                              bensusanaB Offline
                              bensusanaB Offline
                              bensusana
                              Contributor
                              wrote on last edited by
                              #17

                              @Eric-Katzfey @Alex-Kushleyev @Chad-Sweet
                              hi guys,
                              we about to build 4 more drones with same setup ( 8 total) and we have to be sure about the hardware, how can you help us to work this through?
                              can one of the dev team can give us support through emails? its hard to support this with one massage a day ( we have time zone problem 😳 )

                              ModeratorM 1 Reply Last reply
                              0
                              • bensusanaB bensusana

                                @Eric-Katzfey @Alex-Kushleyev @Chad-Sweet
                                hi guys,
                                we about to build 4 more drones with same setup ( 8 total) and we have to be sure about the hardware, how can you help us to work this through?
                                can one of the dev team can give us support through emails? its hard to support this with one massage a day ( we have time zone problem 😳 )

                                ModeratorM Offline
                                ModeratorM Offline
                                Moderator
                                ModalAI Team
                                wrote on last edited by
                                #18

                                @bensusana Hi Ben, Eric is our head of software so you are getting the best support we can offer at this point. Do you have developers you work with who can help debug PX4?

                                We are working on a new firmware for that VOXL 2 IO board that we hope to help resolve some of your issues. We are a few weeks away though from the release.

                                For the direct CSRF connection, are you using the latest SDK or is it still the older version?

                                bensusanaB 1 Reply Last reply
                                0
                                • ModeratorM Moderator

                                  @bensusana Hi Ben, Eric is our head of software so you are getting the best support we can offer at this point. Do you have developers you work with who can help debug PX4?

                                  We are working on a new firmware for that VOXL 2 IO board that we hope to help resolve some of your issues. We are a few weeks away though from the release.

                                  For the direct CSRF connection, are you using the latest SDK or is it still the older version?

                                  bensusanaB Offline
                                  bensusanaB Offline
                                  bensusana
                                  Contributor
                                  wrote on last edited by
                                  #19

                                  @Moderator Sdk 0.9.5
                                  Crossfire nano rx connected to j19 ,using mavlink mode.
                                  For unknown reasons in this mode I can control the drone but a lot of mavlink massages disappear, no battery status system status almost half of the tabs in mavlink inspector on qgc are gone .

                                  What I’m doing wrong?
                                  Can I use csrf raw on that Sdk?or should I move to v1.0?

                                  should I try use spectrum receiver?

                                  Eric KatzfeyE 1 Reply Last reply
                                  0
                                  • bensusanaB bensusana

                                    @Moderator Sdk 0.9.5
                                    Crossfire nano rx connected to j19 ,using mavlink mode.
                                    For unknown reasons in this mode I can control the drone but a lot of mavlink massages disappear, no battery status system status almost half of the tabs in mavlink inspector on qgc are gone .

                                    What I’m doing wrong?
                                    Can I use csrf raw on that Sdk?or should I move to v1.0?

                                    should I try use spectrum receiver?

                                    Eric KatzfeyE Offline
                                    Eric KatzfeyE Offline
                                    Eric Katzfey
                                    ModalAI Team
                                    wrote on last edited by
                                    #20

                                    @bensusana Using the TBS Crossfire receiver in mavlink mode shouldn't have any affect on the mavlink messages you get at QGC. The TBS Crossfire driver runs on the DSP and communicates to the receiver using UART. It uses the Mavlink protocol over that UART. The Mavlink module is a completely separate thing that runs on the applications processor and communicates to QGC via the network. So it is unclear to me how one would influence the other in any way. You can certainly try it in CRSF mode. You can also switch to Spektrum. For full M0065 support of both RC and PWM we would recommend waiting for the upcoming 1.0.x release that supports that combination.

                                    bensusanaB 1 Reply Last reply
                                    0
                                    • Eric KatzfeyE Eric Katzfey

                                      @bensusana Using the TBS Crossfire receiver in mavlink mode shouldn't have any affect on the mavlink messages you get at QGC. The TBS Crossfire driver runs on the DSP and communicates to the receiver using UART. It uses the Mavlink protocol over that UART. The Mavlink module is a completely separate thing that runs on the applications processor and communicates to QGC via the network. So it is unclear to me how one would influence the other in any way. You can certainly try it in CRSF mode. You can also switch to Spektrum. For full M0065 support of both RC and PWM we would recommend waiting for the upcoming 1.0.x release that supports that combination.

                                      bensusanaB Offline
                                      bensusanaB Offline
                                      bensusana
                                      Contributor
                                      wrote on last edited by bensusana
                                      #21

                                      @Eric-Katzfey how to start the system with crsf raw mode?
                                      i didnt found it on the modalAi portal .
                                      for mavlink mode i tracked open topic that says use voxl-px4 -r for mavlink...
                                      this link : https://docs.modalai.com/voxl2-rc-configs/#crsf leading to "page not found"

                                      thanks for the support !

                                      Eric KatzfeyE 1 Reply Last reply
                                      0
                                      • bensusanaB bensusana

                                        @Eric-Katzfey how to start the system with crsf raw mode?
                                        i didnt found it on the modalAi portal .
                                        for mavlink mode i tracked open topic that says use voxl-px4 -r for mavlink...
                                        this link : https://docs.modalai.com/voxl2-rc-configs/#crsf leading to "page not found"

                                        thanks for the support !

                                        Eric KatzfeyE Offline
                                        Eric KatzfeyE Offline
                                        Eric Katzfey
                                        ModalAI Team
                                        wrote on last edited by
                                        #22

                                        @bensusana Use -c instead of -r. Baudrate will be 250000 for CRSF (It's 115200 for Mavlink mode).

                                        bensusanaB 1 Reply Last reply
                                        0
                                        • bensusanaB Offline
                                          bensusanaB Offline
                                          bensusana
                                          Contributor
                                          wrote on last edited by
                                          #23

                                          hi guys ,
                                          quick update , after a lot of testing and after we take out the IO board and still got some wobbling from the drone , we re-calibrate the f55 esc we got diffrent results from the last calibration , after updated the last resullts we did a flight test and the drone fly smoothly .

                                          thanks for the support ,
                                          i hope that this topic will help others 🙂
                                          @Eric-Katzfey @Moderator @Alex-Kushleyev

                                          1 Reply Last reply
                                          0

                                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                          With your input, this post could be even better 💗

                                          Register Login
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          ModalAI
                                          Categories Recent Tags ModalAI.com Docs
                                          © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups