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. Voxl2 Spektrum Receiver error

Voxl2 Spektrum Receiver error

Scheduled Pinned Locked Moved VOXL 2
90 Posts 4 Posters 35.3k Views 3 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.
  • Eric KatzfeyE Eric Katzfey

    @Chase-Riley And they are mapped correctly such that throttle is on the stick you want? Can you do listener on manual_control_setpoint and see the throttle value move when you move the throttle stick?

    Chase RileyC Offline
    Chase RileyC Offline
    Chase Riley
    Regular
    wrote on last edited by
    #74

    @Eric-Katzfey RC_MAP_THROTTLE is set to Channel 3, RC_MAP_YAW is set to Channel 4, RC_MAP_ROLL is set to Channel 1, and RC_MAP_PITCH is set to Channel 2.

    Moving the Throttle and Yaw stick while running listener manual_control_setpoint shows Throttle and Yaw changing values as it should. It also shows that Stick movement goes TRUE.

    Eric KatzfeyE 2 Replies Last reply
    0
    • Chase RileyC Chase Riley

      @Eric-Katzfey RC_MAP_THROTTLE is set to Channel 3, RC_MAP_YAW is set to Channel 4, RC_MAP_ROLL is set to Channel 1, and RC_MAP_PITCH is set to Channel 2.

      Moving the Throttle and Yaw stick while running listener manual_control_setpoint shows Throttle and Yaw changing values as it should. It also shows that Stick movement goes TRUE.

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

      @Chase-Riley Then at this point I can't think of how the RC could be related to the motors not spinning up. Can you arm, try to throttle up a few times, then disarm and send us the px4 flight log?

      Chase RileyC 1 Reply Last reply
      0
      • Chase RileyC Chase Riley

        @Eric-Katzfey RC_MAP_THROTTLE is set to Channel 3, RC_MAP_YAW is set to Channel 4, RC_MAP_ROLL is set to Channel 1, and RC_MAP_PITCH is set to Channel 2.

        Moving the Throttle and Yaw stick while running listener manual_control_setpoint shows Throttle and Yaw changing values as it should. It also shows that Stick movement goes TRUE.

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

        @Chase-Riley And you have tried to throttle up in manual flight mode?

        1 Reply Last reply
        0
        • Eric KatzfeyE Eric Katzfey

          @Chase-Riley Then at this point I can't think of how the RC could be related to the motors not spinning up. Can you arm, try to throttle up a few times, then disarm and send us the px4 flight log?

          Chase RileyC Offline
          Chase RileyC Offline
          Chase Riley
          Regular
          wrote on last edited by
          #77

          @Eric-Katzfey I have tried to spin the motors in manual mode as well with no change. I have included a drop box link with the px4 flight log you requested.

          Link Preview Image
          Dropbox - 400

          favicon

          (www.dropbox.com)

          Eric KatzfeyE 1 Reply Last reply
          0
          • Chase RileyC Chase Riley

            @Eric-Katzfey I have tried to spin the motors in manual mode as well with no change. I have included a drop box link with the px4 flight log you requested.

            Link Preview Image
            Dropbox - 400

            favicon

            (www.dropbox.com)

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

            @Chase-Riley I'm having some others take a look at the log file. I'm kind of stumped at the moment.

            Chase RileyC 1 Reply Last reply
            0
            • Eric KatzfeyE Eric Katzfey

              @Chase-Riley I'm having some others take a look at the log file. I'm kind of stumped at the moment.

              Chase RileyC Offline
              Chase RileyC Offline
              Chase Riley
              Regular
              wrote on last edited by
              #79

              @Eric-Katzfey Please let me know what you or your team find. This seems to be the last hurdle to getting me to flight testing. I have a shipping deadline to make on Friday with this system.

              Eric KatzfeyE Alex KushleyevA 2 Replies Last reply
              0
              • Chase RileyC Chase Riley

                @Eric-Katzfey Please let me know what you or your team find. This seems to be the last hurdle to getting me to flight testing. I have a shipping deadline to make on Friday with this system.

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

                @Chase-Riley Seems like ESC param issue. Alex is going to respond with some suggestions.

                1 Reply Last reply
                0
                • Chase RileyC Chase Riley

                  @Eric-Katzfey Please let me know what you or your team find. This seems to be the last hurdle to getting me to flight testing. I have a shipping deadline to make on Friday with this system.

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

                  @Chase-Riley , we have discussed and the data on the PX4 side looks ok so far, which leads me to believe there may be an error in ESC params, specifically the RPM curve calibration pwm_vs_rpm_curve_a0, pwm_vs_rpm_curve_a1, pwm_vs_rpm_curve_a2.

                  Please confirm that you performed the calibration (with propeller mounted on motor!) according to instructions here and updated the results (a0, a1, a2) params in your esc params xml file and sent it to the ESC ?

                  Also double check the min_rpm and max_rpm in your esc params

                  Alex KushleyevA 1 Reply Last reply
                  0
                  • Alex KushleyevA Alex Kushleyev

                    @Chase-Riley , we have discussed and the data on the PX4 side looks ok so far, which leads me to believe there may be an error in ESC params, specifically the RPM curve calibration pwm_vs_rpm_curve_a0, pwm_vs_rpm_curve_a1, pwm_vs_rpm_curve_a2.

                    Please confirm that you performed the calibration (with propeller mounted on motor!) according to instructions here and updated the results (a0, a1, a2) params in your esc params xml file and sent it to the ESC ?

                    Also double check the min_rpm and max_rpm in your esc params

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

                    Additionally, I saw that you use THR_MDL_FAC set to 0.8, which is what we use in our Sentinel drone. However, your propellers, if i am not mistaken, are much larger and this factor may need to be correct. I will double check how to calculate this factor correctly.

                    Alex KushleyevA Chase RileyC 2 Replies Last reply
                    0
                    • Alex KushleyevA Alex Kushleyev

                      Additionally, I saw that you use THR_MDL_FAC set to 0.8, which is what we use in our Sentinel drone. However, your propellers, if i am not mistaken, are much larger and this factor may need to be correct. I will double check how to calculate this factor correctly.

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

                      Another suggestion: you can test your ESC response with the following command:

                      https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-esc/-/blob/dev/voxl-esc-tools/calibration.md?ref_type=heads#test-esc-using-rpm-commands (at the very bottom)

                      (you can adjust your test command according to your motor / prop and min/max rpm, etc)

                      Chase RileyC 1 Reply Last reply
                      0
                      • Alex KushleyevA Alex Kushleyev

                        Another suggestion: you can test your ESC response with the following command:

                        https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-esc/-/blob/dev/voxl-esc-tools/calibration.md?ref_type=heads#test-esc-using-rpm-commands (at the very bottom)

                        (you can adjust your test command according to your motor / prop and min/max rpm, etc)

                        Chase RileyC Offline
                        Chase RileyC Offline
                        Chase Riley
                        Regular
                        wrote on last edited by
                        #84

                        @Alex-Kushleyev I went and checked my .xml file and verified it was correct and re uploaded it to the ESC just to make sure. I had already run the calibration and updated the A0, A1, and A2.

                        I did find that my min_rpm and max rpm were different in the xml file than I had them set in px4. That may have been the issue because control seems to be working fine now. Between re flashing the xml and changing the values one or both of the solutions solved the issue. I will contnue testing and report back with any issues. Thanks for jumping in and helping out.

                        @Eric-Katzfey you said this morning that the DX6e data I sent over did not look correct. Is there something else we want to look into there. As I said before after looking at the logs the DX8 and the DX6e seem to behave the same way.

                        Eric KatzfeyE 1 Reply Last reply
                        0
                        • Alex KushleyevA Alex Kushleyev

                          Additionally, I saw that you use THR_MDL_FAC set to 0.8, which is what we use in our Sentinel drone. However, your propellers, if i am not mistaken, are much larger and this factor may need to be correct. I will double check how to calculate this factor correctly.

                          Chase RileyC Offline
                          Chase RileyC Offline
                          Chase Riley
                          Regular
                          wrote on last edited by
                          #85

                          @Alex-Kushleyev Do you have a rough idea of what this value should be set to? If you need to know my motor and prop combo send me an email. I would rather not disclose on the forums.

                          Alex KushleyevA 1 Reply Last reply
                          0
                          • Chase RileyC Chase Riley

                            @Alex-Kushleyev Do you have a rough idea of what this value should be set to? If you need to know my motor and prop combo send me an email. I would rather not disclose on the forums.

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

                            @Chase-Riley , i am checking. There should be a formula to calculated it.

                            Alex KushleyevA 1 Reply Last reply
                            0
                            • Chase RileyC Chase Riley

                              @Alex-Kushleyev I went and checked my .xml file and verified it was correct and re uploaded it to the ESC just to make sure. I had already run the calibration and updated the A0, A1, and A2.

                              I did find that my min_rpm and max rpm were different in the xml file than I had them set in px4. That may have been the issue because control seems to be working fine now. Between re flashing the xml and changing the values one or both of the solutions solved the issue. I will contnue testing and report back with any issues. Thanks for jumping in and helping out.

                              @Eric-Katzfey you said this morning that the DX6e data I sent over did not look correct. Is there something else we want to look into there. As I said before after looking at the logs the DX8 and the DX6e seem to behave the same way.

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

                              @Chase-Riley Just the protocol byte being different than what we normally see. Not sure why it is doing that.

                              1 Reply Last reply
                              0
                              • Alex KushleyevA Alex Kushleyev

                                @Chase-Riley , i am checking. There should be a formula to calculated it.

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

                                @Chase-Riley , based on the following documentation, https://docs.px4.io/main/en/config_mc/pid_tuning_guide_multicopter.html , this factor determines the mapping between the control command (in our case rpm) and thrust. An ideal propeller would have a quadratic relationship between thrust and rpm, such as thrust = a*rpm^2, but the propeller will lose efficiency at higher rpms, so a good compromise is the value of 0.8, which we are using on our vehicles. This parameter is actually not dependent on the specific min and max rpm, but should be considered as a general approximation to map the control input to thrust (in normalized units, which is taken care of by px4).

                                Please note that if you use a traditional ESC, whose control input is PWM duty cycle, the resulting mapping will be less accurate (in terms of being a perfect quadratic function). The reason is that with modalai esc, the ESC takes care of RPM control (and thrust is a function of RPM), but traditional ESCs do not RPM control, so the relationship to thrust is more complicated.

                                So i think you can leave THR_MDL_FAC parameter at 0.8 and should be OK!

                                Chase RileyC 1 Reply Last reply
                                0
                                • Alex KushleyevA Alex Kushleyev

                                  @Chase-Riley , based on the following documentation, https://docs.px4.io/main/en/config_mc/pid_tuning_guide_multicopter.html , this factor determines the mapping between the control command (in our case rpm) and thrust. An ideal propeller would have a quadratic relationship between thrust and rpm, such as thrust = a*rpm^2, but the propeller will lose efficiency at higher rpms, so a good compromise is the value of 0.8, which we are using on our vehicles. This parameter is actually not dependent on the specific min and max rpm, but should be considered as a general approximation to map the control input to thrust (in normalized units, which is taken care of by px4).

                                  Please note that if you use a traditional ESC, whose control input is PWM duty cycle, the resulting mapping will be less accurate (in terms of being a perfect quadratic function). The reason is that with modalai esc, the ESC takes care of RPM control (and thrust is a function of RPM), but traditional ESCs do not RPM control, so the relationship to thrust is more complicated.

                                  So i think you can leave THR_MDL_FAC parameter at 0.8 and should be OK!

                                  Chase RileyC Offline
                                  Chase RileyC Offline
                                  Chase Riley
                                  Regular
                                  wrote on last edited by
                                  #89

                                  @Alex-Kushleyev and @Eric-Katzfey Thanks for your help on this. Flight testing went well. I was able to test with the Spektrum DX8 and DX6e and saw no difference between the two while running the custom Debian file that was sent over.

                                  Eric KatzfeyE 1 Reply Last reply
                                  0
                                  • Chase RileyC Chase Riley

                                    @Alex-Kushleyev and @Eric-Katzfey Thanks for your help on this. Flight testing went well. I was able to test with the Spektrum DX8 and DX6e and saw no difference between the two while running the custom Debian file that was sent over.

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

                                    @Chase-Riley Okay, thanks for the update. I'll have to add an option to ignore the protocol byte check in the Spektrum driver then.

                                    1 Reply Last reply
                                    0
                                    • Eric KatzfeyE Eric Katzfey referenced this topic on

                                    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

                                    • Don't have an account? Register

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