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

ModalAI Forum

  1. ModalAI Support Forum
  2. Software Development
  3. GPS-denied Navigation (VIO)
  4. Running VIO with GPS active

Running VIO with GPS active

Scheduled Pinned Locked Moved GPS-denied Navigation (VIO)
3 Posts 2 Posters 942 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.
  • Allen WuA Offline
    Allen WuA Offline
    Allen Wu
    wrote on last edited by
    #1

    Hi all, I came across a VIO demo video on ModalAI's official youtube channel and found something interesting. The GPS was initially active, but was supposedly turned off with the command "gps stop" midway through the flight mission. However, the true GPS seems to remain active and recorded the actual trajectory of the VIO flight(the curly trajectory) even after "gps stop" was sent(see screenshot from the video below).

    modalai_vio.png
    modalai_vio_demo.png

    I've gone through the voxl-qvio-server source code, but I'm having trouble locating the implementation part of this —could anyone point me in the right direction? We are planning to test the VIO but would be better if we also have GPS on so we can use the geofence for safety purposes and also evaluate the performance with GPS as a groundtruth reference after testing.

    Cliff WongC 1 Reply Last reply
    0
    • Allen WuA Allen Wu

      Hi all, I came across a VIO demo video on ModalAI's official youtube channel and found something interesting. The GPS was initially active, but was supposedly turned off with the command "gps stop" midway through the flight mission. However, the true GPS seems to remain active and recorded the actual trajectory of the VIO flight(the curly trajectory) even after "gps stop" was sent(see screenshot from the video below).

      modalai_vio.png
      modalai_vio_demo.png

      I've gone through the voxl-qvio-server source code, but I'm having trouble locating the implementation part of this —could anyone point me in the right direction? We are planning to test the VIO but would be better if we also have GPS on so we can use the geofence for safety purposes and also evaluate the performance with GPS as a groundtruth reference after testing.

      Cliff WongC Offline
      Cliff WongC Offline
      Cliff Wong
      ModalAI Team
      wrote on last edited by Cliff Wong
      #2

      @Allen-Wu Yes, there are multiple ways to use GPS hardware and data all controlled by PX4. Let me walk you through the possibilities in the order of coarse grain control to fine grain control below:

      1. Unplugging the connector to the GPS unit: this will outright disable its capability (also losing magnetometer as well). In this case no gps data will be present in the system nor logged. This applies from power up to power down.

      2. Disabling the GPS driver, done by using the PX4Shell and running "gps stop': GPS hardware is still running but data is not used by PX4 subsystems, hence why you still get raw data logged. You can access the PX4Shell via QGC-->[Analyze Tools]-->[MAVlink Console] (type 'help' will show you the command options). This is the scenario in the above video example.

      3. Enable/Disable GPS processing: apply PX4 params.
        Apply params using these parameters will include GPS data in the position estimate along with VIO.

      4. Removing GPS data in flight: you can just alter these 2 values to add/remove GPS data in the position estimate.
        EKF2_EV_CTRL
        EKF2_GPS_CTRL
        I'll refer to the QGC/PX4 docs on their function. note altering these in flight can cause jumps in the position estimate causing the drone to have aggressive, unpredictable motions until the position is reestablished.

      From your request, it sounds like you want both VIO and GPS running, hence you can just apply option #3 until you're ready to turn off GPS.

      1 Reply Last reply
      0
      • Allen WuA Offline
        Allen WuA Offline
        Allen Wu
        wrote on last edited by Allen Wu
        #3

        @Cliff-Wong Thanks for your detailed guidance, helps a lot! #2 is actually what I was originally aiming to do, since I am actually doing simulation stuff with PX4 SITL so I can turn off GPS without consequences. Will try the other steps when we are ready to run it on hardware.

        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