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

ModalAI Forum

  1. ModalAI Support Forum
  2. VOXL Dev Drones
  3. Starling & Starling 2
  4. Access position data at higher frequency

Access position data at higher frequency

Scheduled Pinned Locked Moved Starling & Starling 2
starling2 maxmavlinkoffboard-mode
3 Posts 1 Posters 1.4k 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.
  • G Offline
    G Offline
    griffin
    Contributor
    wrote on last edited by
    #1

    Hey all,

    I'm trying to use offboard control mode to give velocity commands to a starling 2 max and need position information at higher than 10 Hz (the default rate at which mavlink position messages are published)

    Is it possible to access this information at a higher rate either by increasing the mavlink publishing rate or using MPA?

    Kind regards,
    Griffin

    G 1 Reply Last reply
    0
    • G griffin

      Hey all,

      I'm trying to use offboard control mode to give velocity commands to a starling 2 max and need position information at higher than 10 Hz (the default rate at which mavlink position messages are published)

      Is it possible to access this information at a higher rate either by increasing the mavlink publishing rate or using MPA?

      Kind regards,
      Griffin

      G Offline
      G Offline
      griffin
      Contributor
      wrote on last edited by
      #2

      For anyone running into similar issues, here is the solution I found:

      You can manually adjust the interval times of mavlink messages with the MAV_CMD_SET_MESSAGE_INTERVAL command, in this case for the LOCAL_POSITION_NED message.

      Using pymavlink this can be accomplished with:

              # 
              self.client = mavutil.mavlink_connection(
                  connection_string,
              )
              # [...]
              self.client.mav.command_long_send(
                  self.client.target_system,
                  self.client.target_component,
                  mavutil.mavlink.MAV_CMD_SET_MESSAGE_INTERVAL,
                  0,  # confirmation
                  32, # LOCAL_POSITION_NED
                  10000, # Wait time in us
                  0, 0, 0, 0, 0  # param3-7: unused
              )
      

      Hope this helps anyone else who wants higher rate data!

      G 1 Reply Last reply
      0
      • G griffin

        For anyone running into similar issues, here is the solution I found:

        You can manually adjust the interval times of mavlink messages with the MAV_CMD_SET_MESSAGE_INTERVAL command, in this case for the LOCAL_POSITION_NED message.

        Using pymavlink this can be accomplished with:

                # 
                self.client = mavutil.mavlink_connection(
                    connection_string,
                )
                # [...]
                self.client.mav.command_long_send(
                    self.client.target_system,
                    self.client.target_component,
                    mavutil.mavlink.MAV_CMD_SET_MESSAGE_INTERVAL,
                    0,  # confirmation
                    32, # LOCAL_POSITION_NED
                    10000, # Wait time in us
                    0, 0, 0, 0, 0  # param3-7: unused
                )
        

        Hope this helps anyone else who wants higher rate data!

        G Offline
        G Offline
        griffin
        Contributor
        wrote on last edited by
        #3

        edit: use mavutil.mavlink.MAVLINK_MSG_ID_LOCAL_POSITION_NED* instead of magic number 32 for message ID

        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