I wanted to do some changes to use external imu on spi bus (external) of Pixhawk1 (fmuv3) hardware. The pixhawk’s spi bus is spi1 or spi4?
From the fmuv3 hwdef, there is definition for spidev, mpu9250_ext is defined on spi4, but some google searching it comes as spi1. Another label has mpu9250 and it is on spi4.
I basically want to connect an external imu since my board only has one - mpu6000.
From my findings, I need to correctly define spidev definitions in hwdef of fmuv3. There is already some definitions related to mpu9250 (one is labelled ext and other is mpu9250) in hwdef spidev section.
Then, in Pixhawk1 hwdef, I need to add a line similar to the definition of mpu6000: with mpu9250 or mpu9250_ext and the needed rotation.
So, is the external bus spi1 or spi4 and what is its cs pin?
Here, I found that the internal MPU6000 is connected to MPU_CS, which is defined in SPI1 in the SPIDEV section of hwdef. So, it seems like that the external bus is SPI4 and it uses mpu_ext_cs.