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

ModalAI Forum

  1. ModalAI Support Forum
  2. Software Development
  3. Modal Pipe Architecture (MPA)
  4. Remote buttons on Vision-hub or MAVlink-server

Remote buttons on Vision-hub or MAVlink-server

Scheduled Pinned Locked Moved Modal Pipe Architecture (MPA)
5 Posts 2 Posters 872 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.
  • Caio Licínio Vasconcelos PantarottoC Offline
    Caio Licínio Vasconcelos PantarottoC Offline
    Caio Licínio Vasconcelos Pantarotto
    Contributor
    wrote on last edited by
    #1

    I want to get information from the remote controller for the state of each channel (the idea is to trigger some functionalities when a certain button is pressed) I managed to get some data from the MPA "mavlink_to_gcs".. But I believe this is probably low frequency.. I wonder if vision-hub outputs this kind of data or do I have to connect directly to mavlink-server? (the documentation says to avoid connecting to mavlink-server directly) Maybe via "mavlink_onboard" or "mavlink_sys_status"

    Thank You

    Eric KatzfeyE 1 Reply Last reply
    0
    • Caio Licínio Vasconcelos PantarottoC Caio Licínio Vasconcelos Pantarotto

      I want to get information from the remote controller for the state of each channel (the idea is to trigger some functionalities when a certain button is pressed) I managed to get some data from the MPA "mavlink_to_gcs".. But I believe this is probably low frequency.. I wonder if vision-hub outputs this kind of data or do I have to connect directly to mavlink-server? (the documentation says to avoid connecting to mavlink-server directly) Maybe via "mavlink_onboard" or "mavlink_sys_status"

      Thank You

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

      @Caio-Licínio-Vasconcelos-Pantarotto What kind of remote controller are you using? What platform are you on (e.g. Which drone or development board)? What software release are you using on that platform?

      Caio Licínio Vasconcelos PantarottoC 1 Reply Last reply
      0
      • Eric KatzfeyE Eric Katzfey

        @Caio-Licínio-Vasconcelos-Pantarotto What kind of remote controller are you using? What platform are you on (e.g. Which drone or development board)? What software release are you using on that platform?

        Caio Licínio Vasconcelos PantarottoC Offline
        Caio Licínio Vasconcelos PantarottoC Offline
        Caio Licínio Vasconcelos Pantarotto
        Contributor
        wrote on last edited by
        #3

        @Eric-Katzfey Hi I have an out of the box Starling.. voxl2(up-to-date), ELRS 915MHz. I was currently trying to subscribe to "mavlink_onboard".. following the Portal Header source code I managed to get

        if (msg->msgid == MAVLINK_MSG_ID_HEARTBEAT){
        bool armed = (mavlink_msg_heartbeat_get_base_mode(msg) & MAV_MODE_FLAG_SAFETY_ARMED);
        uint8_t main_mode = (mavlink_msg_heartbeat_get_custom_mode(msg) & 0x00FF0000) >> 16;
        uint32_t sub_mode = (mavlink_msg_heartbeat_get_custom_mode(msg) & 0xFF000000) >> 24;

        sub_mode its always 0.. I don't know what sub_mode is supposed to be.. but I would like for example to when I press the right button I wanna trigger something like snapshot. I also wonder if the best way to do this is to use the send-command hires snapshot or maybe get the camera feed directly. I want to make a client pipe that will receive the photo and some other info from other pipes, like vio, and tof.. it would be great to find a way where when I press the button all this info is captured and saved on disk.. and would be good that all of this happens at same time (or the closest as possible). Thank You for the reply.

        Eric KatzfeyE 1 Reply Last reply
        0
        • Caio Licínio Vasconcelos PantarottoC Caio Licínio Vasconcelos Pantarotto

          @Eric-Katzfey Hi I have an out of the box Starling.. voxl2(up-to-date), ELRS 915MHz. I was currently trying to subscribe to "mavlink_onboard".. following the Portal Header source code I managed to get

          if (msg->msgid == MAVLINK_MSG_ID_HEARTBEAT){
          bool armed = (mavlink_msg_heartbeat_get_base_mode(msg) & MAV_MODE_FLAG_SAFETY_ARMED);
          uint8_t main_mode = (mavlink_msg_heartbeat_get_custom_mode(msg) & 0x00FF0000) >> 16;
          uint32_t sub_mode = (mavlink_msg_heartbeat_get_custom_mode(msg) & 0xFF000000) >> 24;

          sub_mode its always 0.. I don't know what sub_mode is supposed to be.. but I would like for example to when I press the right button I wanna trigger something like snapshot. I also wonder if the best way to do this is to use the send-command hires snapshot or maybe get the camera feed directly. I want to make a client pipe that will receive the photo and some other info from other pipes, like vio, and tof.. it would be great to find a way where when I press the button all this info is captured and saved on disk.. and would be good that all of this happens at same time (or the closest as possible). Thank You for the reply.

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

          @Caio-Licínio-Vasconcelos-Pantarotto You need to look for MAVLINK_MSG_ID_RC_CHANNELS. That contains the raw channel values for all of the RC channels (including the switches, buttons, etc.)

          Caio Licínio Vasconcelos PantarottoC 1 Reply Last reply
          1
          • Eric KatzfeyE Eric Katzfey

            @Caio-Licínio-Vasconcelos-Pantarotto You need to look for MAVLINK_MSG_ID_RC_CHANNELS. That contains the raw channel values for all of the RC channels (including the switches, buttons, etc.)

            Caio Licínio Vasconcelos PantarottoC Offline
            Caio Licínio Vasconcelos PantarottoC Offline
            Caio Licínio Vasconcelos Pantarotto
            Contributor
            wrote on last edited by
            #5

            @Eric-Katzfey Thank You! it worked great.

            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