@restore, it looks like PX4 does have a driver for this imu/compass.
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 startWe 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