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

ModalAI Forum

  1. ModalAI Support Forum
  2. General Questions
  3. 10Hz GPS?

10Hz GPS?

Scheduled Pinned Locked Moved Unsolved General Questions
6 Posts 3 Posters 820 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.
  • S Offline
    S Offline
    SethG
    Contributor
    wrote on last edited by
    #1

    On my VOXL 2, I'm trying to get the ModalAI-supplied GPS working at 10hz. According to the data sheet for the M8N, it can be set to 10hz once the constellations are limited to GPS only. I was able to set that param with QGC (and watch the satellite count drop by half), but still stuck at 5Hz.

    If it can't be done with the ModalAI supplied GNSS, then who else makes one that will work with the VOXL2?

    Eric KatzfeyE 1 Reply Last reply
    0
    • S SethG

      On my VOXL 2, I'm trying to get the ModalAI-supplied GPS working at 10hz. According to the data sheet for the M8N, it can be set to 10hz once the constellations are limited to GPS only. I was able to set that param with QGC (and watch the satellite count drop by half), but still stuck at 5Hz.

      If it can't be done with the ModalAI supplied GNSS, then who else makes one that will work with the VOXL2?

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

      @SethG The unit is built by Holybro. Perhaps you can consult their product documentation for pointers. Also, the software driver is part of px4. You can consult px4 documentation and source code to see what it supports.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SethG
        Contributor
        wrote on last edited by
        #3

        Okay, first of all, I didn't buy the $49 unit from Holybro, I bought $190 unit from ModalAI. It's been wired differently. I've consulted the U-Blox reference manual for the M8N, a very common chip, and it clearly indicates it will run at 10Hz:
        https://content.u-blox.com/sites/default/files/NEO-M8-FW3_DataSheet_UBX-15031086.pdf

        Second, you guys forked your own version of PX4 and if I understand correctly made changes to make it work over the Qualcomm DSP on the VOXL 2. Your code branch has its own definitions.h and gps.cpp file implemented and can be found here:
        https://github.com/modalai/px4-firmware/tree/main/src/drivers/gps

        Third, I did review the PX4 code base for UBX.cpp and it looks to set everything to 5hz, unless it's an F9P for which it sets it at 10hz. It also includes some sort of complaint as a comment about not the author's inability to read a GNSS data sheet and based on the code that follows, a strong possibility that the original author sabotaged the code branch to force minimal update rates as some sort of retribution.

        // measurement rate
        // In case of F9P not in moving base mode we use 10Hz, otherwise 8Hz (receivers such as M9N can go higher as well, but
        // the number of used satellites will be restricted to 16. Not mentioned in datasheet)
        int rate_meas;

        if (_mode != UBXMode::Normal) {
        	rate_meas = 125; //8Hz for heading.
        
        } else {
        	rate_meas = (_board == Board::u_blox9_F9P) ? 100 : 125;
        }
        
        1 Reply Last reply
        0
        • S Offline
          S Offline
          SethG
          Contributor
          wrote on last edited by
          #4

          Update, got it working, turns out you guys broke auto baud.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SethG
            Contributor
            wrote on last edited by
            #5

            Another update, got it working to 25hz on an M9N with all constellations running simultaneously. Duty cycle wasn't bad on 115,200, 12 milliseconds of transmission every 40 milliseconds. Just in case anyone ever comes across this thread in the future.

            25Hz sensor_gps on M9N.png

            S 1 Reply Last reply
            0
            • S SethG

              Another update, got it working to 25hz on an M9N with all constellations running simultaneously. Duty cycle wasn't bad on 115,200, 12 milliseconds of transmission every 40 milliseconds. Just in case anyone ever comes across this thread in the future.

              25Hz sensor_gps on M9N.png

              S Offline
              S Offline
              SMRazaRizvi
              Regular
              wrote on last edited by
              #6

              @SethG How did you do this? Please mention the steps here.

              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