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

    doodle labs and joystick setup

    Ask your questions right here!
    2
    14
    115
    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.
    • Eric KatzfeyE
      Eric Katzfey ModalAI Team @Eric Katzfey
      last edited by

      @Eric-Katzfey For turtle mode with a joystick you need to set VOXL_ESC_MODE to 1 and, while not armed, press a button and keep it pressed while arming. For flight modes that should all be handled through QGC.

      1 Reply Last reply Reply Quote 0
      • Jetson NanoJ
        Jetson Nano @Eric Katzfey
        last edited by

        @Eric-Katzfey yes , I am using the QGC to map joystick buttons. I am using the voxl-fpv-dev version from the modalai px4 repo. I am using the FPV 4-in-1 ESC. I am not able to get more than 2 toggle switches and also not able to assign them two way.

        Eric KatzfeyE 1 Reply Last reply Reply Quote 0
        • Eric KatzfeyE
          Eric Katzfey ModalAI Team @Jetson Nano
          last edited by

          @Jetson-Nano voxl-fpv-dev is the name of the branch. The version will be a number, such as 1.14.0-8.104.3. Most of the joystick button mapping is handled by QGC directly. It maps them to commands that are sent over Mavlink. But the turtle mode is something specific built into the ESC driver. For the joystick buttons to work for turtle mode you need to set VOXL_ESC_MODE to 1. For newer versions of the voxl-fpv-dev branch you can also set VOXL_ESC_MODE to 2. The verify that the button mapping is working you can look at the manual_control_setpoint topic in px4 and see if the aux1 / aux2 fields are changing between 0.0 and 1.0. (e.g. px4-listener manual_control_setpoint)

          Jetson NanoJ 1 Reply Last reply Reply Quote 0
          • Jetson NanoJ
            Jetson Nano @Eric Katzfey
            last edited by

            @Eric-Katzfey Thank you for the support. I will test it out and get back to you encase of any further queries.

            Jetson NanoJ 1 Reply Last reply Reply Quote 0
            • Jetson NanoJ
              Jetson Nano @Jetson Nano
              last edited by

              @Eric-Katzfey
              I tested what you asked me, since i am using external Fc and doodle labs, I am not able to assign AUX to any button, is there any work around on how to assign AUX

              Jetson NanoJ 1 Reply Last reply Reply Quote 0
              • Jetson NanoJ
                Jetson Nano @Jetson Nano
                last edited by

                @Eric-Katzfey @Alex-Kushleyev
                hey guys, just a random thought, can I enable turtle mode through a button instead of taking AUX 1 into consideration. just a thought, any guidance and help would be greatly appreciated.

                Eric KatzfeyE 1 Reply Last reply Reply Quote 0
                • Eric KatzfeyE
                  Eric Katzfey ModalAI Team @Jetson Nano
                  last edited by

                  @Jetson-Nano What do you see if you go to the MAVLink console in QGC and look at the manual_control_setpoint topic? (listener manual_control_setpoint)?

                  Eric KatzfeyE Jetson NanoJ 2 Replies Last reply Reply Quote 0
                  • Eric KatzfeyE
                    Eric Katzfey ModalAI Team @Eric Katzfey
                    last edited by

                    @Eric-Katzfey Also, there is a parameter called VOXL_ESC_T_ON. How is that set? It determines which button will be used for turtle mode. The code is here: https://github.com/modalai/px4-firmware/blob/ea098200d3c09b7af548bf7be29fda245fad8f17/src/modules/mavlink/mavlink_receiver.cpp#L2083

                    Jetson NanoJ 1 Reply Last reply Reply Quote 0
                    • Jetson NanoJ
                      Jetson Nano @Eric Katzfey
                      last edited by Jetson Nano

                      @Eric-Katzfey
                      This is the output i am getting while running listener manual_control_setpoint

                      NuttShell (NSH) NuttX-11.0.0
                      nsh> listener manual_control_setpoint
                      
                      TOPIC: manual_control_setpoint
                       manual_control_setpoint
                          timestamp: 438754659 (0.033455 seconds ago)
                          timestamp_sample: 438754653 (6 us before timestamp)
                          roll: 0.00000
                          pitch: 0.00000
                          yaw: 0.00000
                          throttle: 0.00000
                          flaps: 0.00000
                          aux1: 0.00000
                          aux2: 0.00000
                          aux3: 0.00000
                          aux4: 0.00000
                          aux5: 0.00000
                          aux6: 0.00000
                          buttons: 0
                          valid: True
                          data_source: 2
                          sticks_moving: False
                      
                      nsh> listener manual_control_setpoint
                      
                      TOPIC: manual_control_setpoint
                       manual_control_setpoint
                          timestamp: 446282690 (0.039850 seconds ago)
                          timestamp_sample: 446282683 (7 us before timestamp)
                          roll: 0.00000
                          pitch: 0.00000
                          yaw: 0.00000
                          throttle: 0.00000
                          flaps: 0.00000
                          aux1: 0.00000
                          aux2: 0.00000
                          aux3: 0.00000
                          aux4: 0.00000
                          aux5: 0.00000
                          aux6: 0.00000
                          buttons: 0
                          valid: True
                          data_source: 2
                          sticks_moving: False
                      
                      Eric KatzfeyE 1 Reply Last reply Reply Quote 0
                      • Jetson NanoJ
                        Jetson Nano @Eric Katzfey
                        last edited by Jetson Nano

                        @Eric-Katzfey I am not able to see the option you have mentioned VOXL_ESC_T_ON

                        Eric KatzfeyE 1 Reply Last reply Reply Quote 0
                        • Eric KatzfeyE
                          Eric Katzfey ModalAI Team @Jetson Nano
                          last edited by

                          @Jetson-Nano said in doodle labs and joystick setup:

                          I am not able to see the option you have mentioned VOXL_ESC_T_ON

                          In the Mavlink console what do you see with "param show VOXL_ESC_*"?

                          And what about "ver all"?

                          1 Reply Last reply Reply Quote 0
                          • Eric KatzfeyE
                            Eric Katzfey ModalAI Team @Jetson Nano
                            last edited by

                            @Jetson-Nano said in doodle labs and joystick setup:

                            This is the output i am getting while running listener manual_control_setpoint

                            What is the parameter COM_RC_IN_MODE set to?

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