sorry my bad!
I was thinking about I2CBus=5 but I wrote SpiBus=5 (corrected above)
Indeed it works on I2C as mentioned i2cdetect -y 5 (0x68) and detects IMU-20948 (SEN-15335)
So as long as you run pypilot from the same folder it works after editing the file?
-> now it doesnt' matter as I set SETTINGS_FILE = "/usr/local/lib/python3.10/dist-packages/pypilot/RTIMULib" in ../pypilot/boatimu.py I can run it from anyplace and it always refer to
/usr/local/lib/python3.10/dist-packages/pypilot/RTIMULib.ini where it is set I2CBus=5 and also after have detected IMU it updates that config file to IMUType=14
I was thinking about I2CBus=5 but I wrote SpiBus=5 (corrected above)
Indeed it works on I2C as mentioned i2cdetect -y 5 (0x68) and detects IMU-20948 (SEN-15335)
So as long as you run pypilot from the same folder it works after editing the file?
-> now it doesnt' matter as I set SETTINGS_FILE = "/usr/local/lib/python3.10/dist-packages/pypilot/RTIMULib" in ../pypilot/boatimu.py I can run it from anyplace and it always refer to
/usr/local/lib/python3.10/dist-packages/pypilot/RTIMULib.ini where it is set I2CBus=5 and also after have detected IMU it updates that config file to IMUType=14