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

ModalAI Forum

  1. ModalAI Support Forum
  2. Development Drones
  3. Increasing Mavlink Message Stream Rate from PX4 to VOXL2

Increasing Mavlink Message Stream Rate from PX4 to VOXL2

Scheduled Pinned Locked Moved Unsolved Development Drones
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:

    https://github.com/modalai/px4-firmware/blob/030a59eccfefe3a5e0d2c1649b44b7193cb4bc77/boards/modalai/voxl2/target/voxl-px4-start

    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:

      https://github.com/modalai/px4-firmware/blob/030a59eccfefe3a5e0d2c1649b44b7193cb4bc77/boards/modalai/voxl2/target/voxl-px4-start

      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

        Reading along? Create a free ModalAI Forum account to join in.

        With an account you can reply, ask your own question, get an email when a ModalAI engineer answers, and mark the reply that solved it. Your place in each thread is saved between visits.

        Questions about VOXL, Flight Core, ESCs and ModalAI drones are answered here by the engineers who build them.

        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