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

ModalAI Forum

  1. ModalAI Support Forum
  2. FPV Drones
  3. Stinger control via mavlink joystick

Stinger control via mavlink joystick

Scheduled Pinned Locked Moved FPV Drones
6 Posts 2 Posters 2.4k Views 1 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.
  • qubotics-adminQ Offline
    qubotics-adminQ Offline
    qubotics-admin
    wrote on last edited by
    #1

    Hi.

    We have the stinger drone and would like to fly it using the UXV SRoC controller (joystick). We have done the following modifications:

    • removed the VTX and plugged in a doodlelabs radio in its place.
    • removed the ELRS receiver and plugged in the VOXL IO expander board (to get PWM for the IR/visual lights).
    • Connected the Lights signal wire to the IO expander.
    • In software, we:
      a. stopped the vtx service, and configured the doodlelabs radio
      b. configured the voxl-streamer to stream the fpv camera
      b. in px4 config file, set RC = EXTERNAL (to support joystick)
      c. in px4 start, set "qshell voxl2_io start -p 7 #(use QUP7)" to start voxl io on that port
    • We get telemetry and video on QGC. In the "Actuators" tab, we are able to control the motors and the lights.
    • We get mode switch and arming to work by mapping actions to buttons for joystick.

    Where we got stuck is using joystick to control the Lights, turtle mode, and camera switching. Can you pls suggest how we can control these functionality with joystick? I see that the voxl-px4 service is using an older px4 firmware that publishes a basic manual_control_setpoint message when "manual_control" messages are received from the gcs.

    Eric KatzfeyE 1 Reply Last reply
    0
    • qubotics-adminQ qubotics-admin

      Hi.

      We have the stinger drone and would like to fly it using the UXV SRoC controller (joystick). We have done the following modifications:

      • removed the VTX and plugged in a doodlelabs radio in its place.
      • removed the ELRS receiver and plugged in the VOXL IO expander board (to get PWM for the IR/visual lights).
      • Connected the Lights signal wire to the IO expander.
      • In software, we:
        a. stopped the vtx service, and configured the doodlelabs radio
        b. configured the voxl-streamer to stream the fpv camera
        b. in px4 config file, set RC = EXTERNAL (to support joystick)
        c. in px4 start, set "qshell voxl2_io start -p 7 #(use QUP7)" to start voxl io on that port
      • We get telemetry and video on QGC. In the "Actuators" tab, we are able to control the motors and the lights.
      • We get mode switch and arming to work by mapping actions to buttons for joystick.

      Where we got stuck is using joystick to control the Lights, turtle mode, and camera switching. Can you pls suggest how we can control these functionality with joystick? I see that the voxl-px4 service is using an older px4 firmware that publishes a basic manual_control_setpoint message when "manual_control" messages are received from the gcs.

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

      @qubotics-admin The joystick button to use for turtle mode is set via the VOXL_ESC_T_ON parameter.

      qubotics-adminQ 1 Reply Last reply
      0
      • Eric KatzfeyE Eric Katzfey

        @qubotics-admin The joystick button to use for turtle mode is set via the VOXL_ESC_T_ON parameter.

        qubotics-adminQ Offline
        qubotics-adminQ Offline
        qubotics-admin
        wrote on last edited by
        #3

        @Eric-Katzfey I tried that parameter, but I did was not able to get the motors to spin in turtle mode.
        I tried searching the voxl-px4 repo and could not find how that parameter is used. Do you mind sharing some insight on how the joystick button will trigger turtle mode?
        Just to highlight that I am not using a VTX but doodlelabs radio to connect to a handheld gcs/joystick.

        Eric KatzfeyE 1 Reply Last reply
        0
        • qubotics-adminQ qubotics-admin

          @Eric-Katzfey I tried that parameter, but I did was not able to get the motors to spin in turtle mode.
          I tried searching the voxl-px4 repo and could not find how that parameter is used. Do you mind sharing some insight on how the joystick button will trigger turtle mode?
          Just to highlight that I am not using a VTX but doodlelabs radio to connect to a handheld gcs/joystick.

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

          @qubotics-admin It's in the voxl-fpv-dev branch of our px4 fork. See https://github.com/modalai/px4-firmware/blob/7e1625f20fac5f44a0034bebdb1e3d4027124684/src/modules/mavlink/mavlink_receiver.cpp#L108

          qubotics-adminQ 1 Reply Last reply
          0
          • Eric KatzfeyE Eric Katzfey

            @qubotics-admin It's in the voxl-fpv-dev branch of our px4 fork. See https://github.com/modalai/px4-firmware/blob/7e1625f20fac5f44a0034bebdb1e3d4027124684/src/modules/mavlink/mavlink_receiver.cpp#L108

            qubotics-adminQ Offline
            qubotics-adminQ Offline
            qubotics-admin
            wrote on last edited by
            #5

            @Eric-Katzfey thank you for pointing me to that. It is really helpful!

            Two more questions:
            1- is there a way to know the git commit for the voxl-px4 on the drone at the moment?
            2- how lights are operated on the stinger? is there a direct passthrough from RC to the outputs (P0,P1,P2,P3) on the ELRS receiver? If not, where in the voxl-px4 code does the Lights pwm get assigned pls?

            Thanks for your support!

            Eric KatzfeyE 1 Reply Last reply
            0
            • qubotics-adminQ qubotics-admin

              @Eric-Katzfey thank you for pointing me to that. It is really helpful!

              Two more questions:
              1- is there a way to know the git commit for the voxl-px4 on the drone at the moment?
              2- how lights are operated on the stinger? is there a direct passthrough from RC to the outputs (P0,P1,P2,P3) on the ELRS receiver? If not, where in the voxl-px4 code does the Lights pwm get assigned pls?

              Thanks for your support!

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

              @qubotics-admin First you need to determine the version of PX4 running. With ssh or adb you can run the following at the command line: px4-ver all. You will see PX4 version and Vendor version. So, for example, for px4 version 1.14.0 and vendor version 8.134.3 then you would checkout the tag v1.14.0-8.134.3-dev from the repo to see that commit.

              1 Reply Last reply
              1

              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