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

ModalAI Forum

  1. ModalAI Support Forum
  2. VOXL Dev Drones
  3. Sentinel
  4. Increasing Mavlink Message Stream Rate from PX4 to VOXL2

Increasing Mavlink Message Stream Rate from PX4 to VOXL2

Scheduled Pinned Locked Moved Sentinel
3 Posts 2 Posters 1.6k 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.
  • J Offline
    J Offline
    jmltt
    Regular
    wrote on last edited by
    #1

    Background: Sentinel running SDK 1.1.2. I'm developing an attitude controller that runs as a voxl-service, similar to how the existing offboard modes work inside of vvh, but I need to be able to stream attitude and/or attitude_quaternion topics at at least 100 Hz from PX4. I found the section of what I'm assuming is the px4 start script that sets these values here starting at line 225:

    Link Preview Image
    px4-firmware/boards/modalai/voxl2/target/voxl-px4-start at 030a59eccfefe3a5e0d2c1649b44b7193cb4bc77 · modalai/px4-firmware

    PX4 Autopilot Software. Contribute to modalai/px4-firmware development by creating an account on GitHub.

    favicon

    GitHub (github.com)

    I've figured out that I can change the stream rate when the vehicle is running from the shell via px4-mavlink commands, but this resets every time I boot obviously. I have a couple of related questions:

    1. Is the script I found indeed the only place where this value is set and is the only way to permanently change the stream rate by editing this start script and rebuilding voxl-px4? Would it be reasonable to build a service that sleeps on start until px4 has time to boot then runs the same mavlink commands to reconfigure the stream rates?

    2. Is there any reason why I should avoid streaming at a higher rates for a handful of topics?

    3. Is the existing process of the mavlink-server parsing messages from px4 and writing them to pipes to be read elsewhere sufficient to support real time data monitoring at 100 HZ without adjusting thread priorities?

    Eric KatzfeyE 1 Reply Last reply
    0
    • J jmltt

      Background: Sentinel running SDK 1.1.2. I'm developing an attitude controller that runs as a voxl-service, similar to how the existing offboard modes work inside of vvh, but I need to be able to stream attitude and/or attitude_quaternion topics at at least 100 Hz from PX4. I found the section of what I'm assuming is the px4 start script that sets these values here starting at line 225:

      Link Preview Image
      px4-firmware/boards/modalai/voxl2/target/voxl-px4-start at 030a59eccfefe3a5e0d2c1649b44b7193cb4bc77 · modalai/px4-firmware

      PX4 Autopilot Software. Contribute to modalai/px4-firmware development by creating an account on GitHub.

      favicon

      GitHub (github.com)

      I've figured out that I can change the stream rate when the vehicle is running from the shell via px4-mavlink commands, but this resets every time I boot obviously. I have a couple of related questions:

      1. Is the script I found indeed the only place where this value is set and is the only way to permanently change the stream rate by editing this start script and rebuilding voxl-px4? Would it be reasonable to build a service that sleeps on start until px4 has time to boot then runs the same mavlink commands to reconfigure the stream rates?

      2. Is there any reason why I should avoid streaming at a higher rates for a handful of topics?

      3. Is the existing process of the mavlink-server parsing messages from px4 and writing them to pipes to be read elsewhere sufficient to support real time data monitoring at 100 HZ without adjusting thread priorities?

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

      @jmltt That start script is just a bash script. There is no need to rebuild anything. That is a reference script that we use for the drones we support but you may need to change it if you are working on a custom setup. The streaming rates are setup for two different mavlink endpoints. One is intended for onboard use only and the other is for streaming over the network to a connected ground control station. The endpoint for onboard use can support very high streaming rates since it is only being used locally and not being sent over the air. You can very easily try monitoring at 100 Hz and see if it causes any issues.

      J 1 Reply Last reply
      0
      • Eric KatzfeyE Eric Katzfey

        @jmltt That start script is just a bash script. There is no need to rebuild anything. That is a reference script that we use for the drones we support but you may need to change it if you are working on a custom setup. The streaming rates are setup for two different mavlink endpoints. One is intended for onboard use only and the other is for streaming over the network to a connected ground control station. The endpoint for onboard use can support very high streaming rates since it is only being used locally and not being sent over the air. You can very easily try monitoring at 100 Hz and see if it causes any issues.

        J Offline
        J Offline
        jmltt
        Regular
        wrote on last edited by
        #3

        @Eric-Katzfey

        Thanks for clearing that up. I didn't know I could access it from the voxl's file system but I just found the script in usr/bin. I'll vim into it and change what I need. Thanks!

        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