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

ModalAI Forum

  1. ModalAI Support Forum
  2. Ask your questions right here!
  3. Setting up Joystick Button to Activate AUX1 For Turtle Mode

Setting up Joystick Button to Activate AUX1 For Turtle Mode

Scheduled Pinned Locked Moved Ask your questions right here!
4 Posts 4 Posters 960 Views
  • 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.
  • Jeremy FrederickJ Offline
    Jeremy FrederickJ Offline
    Jeremy Frederick
    Regular
    wrote on last edited by
    #1

    Looking to utilize the joystick functionality of PX4 to activate turtle mode, however joystick buttons cannot manipulate the RC Channels what-so-ever. I'm curious if anyone has found a solution to solve this or if a custom flight mode in PX4 will be necessary.

    wilkinsafW 1 Reply Last reply
    0
    • J Offline
      J Offline
      Jacob Camarillo
      ModalAI Team
      wrote on last edited by
      #2

      Hi @Jeremy-Frederick I'm not sure if we intended to support turtle mode via joystick or have tested this functionality out so I can't guarantee that this will satisfy what you are trying to accomplish, but from what I can see in the code the steps I listed below would be a good place to start. So to enable turtle mode you will need to:

      • Set up your joystick in QGC (In joystick tab select your joystick/controller and set up your channels, etc)

      • You can now press buttons on your joystick while running the command px4-listener manual_control_input to see which buttons provide a non-zero value in the aux1 or aux2 fields (Some of them might not! See image below for example of non-zero value, 512 here)
        aux1

      • Once you know which buttons can be used (give a non-zero value when pressed), then enable turtle mode by setting the parameter MODAL_IO_MODE to either 1 or 2 (depending which aux channel you want to enable/control turtle mode). You may need to reboot your vehicle here!

      • Finally you will need to hold down one of the buttons while in turtle mode (unless you have a button/switch on your joystick that is not a momentary button/switch)

      Aside from what I mentioned here, you could use this ELRS LED driver we have here on how we implemented a similar feature (LED bar controlled by buttons on a controller/joystick) as a reference for how you could implement the functionality you want if the steps here don't work for you.

      If you haven't already seen this page you can find more info about turtle mode parameters on our tech docs.

      1 Reply Last reply
      1
      • Jeremy FrederickJ Jeremy Frederick

        Looking to utilize the joystick functionality of PX4 to activate turtle mode, however joystick buttons cannot manipulate the RC Channels what-so-ever. I'm curious if anyone has found a solution to solve this or if a custom flight mode in PX4 will be necessary.

        wilkinsafW Offline
        wilkinsafW Offline
        wilkinsaf
        ModalAI Team
        wrote on last edited by
        #3

        @Jeremy-Frederick

        Or, you can add this feature in PX4. but, this would take more time to implement

        1 Reply Last reply
        0
        • Jetson NanoJ Offline
          Jetson NanoJ Offline
          Jetson Nano
          Veteran
          wrote on last edited by
          #4

          @Jacob-Camarillo @wilkinsaf
          Hi guys,
          I tested turtle mode out with internal FC and it is working.

          Now I have updated the system with Flight core V2 external FC, and I would like to achieve the same with this configuration. could you help me out here.
          Since we can not use px4-listener anymore. I am bit confused with what approach to go take.

          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

          • Don't have an account? Register

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