Can't get data from second imu
-
Hi, I have a voxl 2 mini on sdk version 1.1.2 and I want to be able to read data off of both imus however I can only get data off of one of the imus, imu_apps. According to the documentation https://docs.modalai.com/voxl2-mini-onboard-sensors/#imus the other imu is imu_px4 but it shows up blank in voxl-inspect-imu imu_px4. I've tried starting px4 and px4-imu-server to fix this but it didn't seem to help. What am I missing to access the second imu. Thanks.
-
@mkriesel The PX4 IMU data is only available in PX4. While PX4 is running you can issue the commands
px4-listener sensor_accel
andpx4-listener sensor_gyro
to see the data from the IMU. Also, it is likely available via Mavlink or ROS. -
@Eric-Katzfey I don't see anything being published in ros and it doesn't seem like anything is being sent on the /run/mpa/imu_px4 pipe. I would like to be able to use both imus in a program I'm writing so is there a way to get the data out like imu_apps and outside of px4 or is px4 the only thing that can use that imu?
-
@mkriesel The PX4 IMU data is only available in PX4
-
@mkriesel You would have to write custom PX4 code to export that data to a pipe
-
@Eric-Katzfey ok, thank you