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

ModalAI Forum

  1. ModalAI Support Forum
  2. VOXL 2 and VOXL 2 Mini
  3. Getting compass to work from the Here 2 GPS

Getting compass to work from the Here 2 GPS

Scheduled Pinned Locked Moved Unsolved VOXL 2 and VOXL 2 Mini
voxl-2
2 Posts 2 Posters 477 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.
  • R Offline
    R Offline
    restore
    Regular
    wrote on last edited by
    #1

    We have the VOXL2 and a Here 2 GPS plugged into J19. We are getting GPS data, but not seeing compass/mag.

    The Here 2 has a ICM20948 9-Axis MEMS.

    Is it possible to configure the px4 start script to use the compass from the ICM20948?

    Alex KushleyevA 1 Reply Last reply
    0
    • R restore

      We have the VOXL2 and a Here 2 GPS plugged into J19. We are getting GPS data, but not seeing compass/mag.

      The Here 2 has a ICM20948 9-Axis MEMS.

      Is it possible to configure the px4 start script to use the compass from the ICM20948?

      Alex KushleyevA Offline
      Alex KushleyevA Offline
      Alex Kushleyev
      ModalAI Team
      wrote on last edited by Alex Kushleyev
      #2

      @restore, it looks like PX4 does have a driver for this imu/compass.

      https://github.com/modalai/px4-firmware/blob/voxl-dev/src/drivers/imu/invensense/icm20948/ICM20948.cpp

      However, it is not clear whether you can read just compass data. Please take a look at this driver.

      If you want to use it, you will need to enable building of the driver in the voxl2 board config: https://github.com/modalai/px4-firmware/blob/voxl-dev/boards/modalai/voxl2-slpi/default.px4board : enable DRIVERS_IMU_INVENSENSE_ICM20948=y .

      Then, modify /usr/bin/voxl-px4-start to include:

      qshell icm20948 start
      

      We have not tested this driver, so we cannot really provide any guidance on using it for your application. However, with the above instructions, you should be able to compile it and run it.

      Please make sure that the IMU data from this module does not conflict with the main flight IMU.

      Alex

      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