Back to trying to discover why the IMU part of the GY-91 module isn't detected. The BMP820 part is working and I2C has the address 0x76
In PyPilot 3.2.11 under Services, Enable IMU Only is selected. This displays pypilot version 0.36 Detected IMU: None
Trying to establish why the IMU isn't detected I discovered some information in the following link
https://github.com/pypilot/pypilot/issues/30
I unsuccessfully attempted to copy the command in the first post (python pypilot/boatimu.py) and then realised I probably needed to confirm the file 'boatium.py and its location. I discovered it was in the following path
/usr.local/lib/python3.9/dist-packages/pypilot
I went to this directory and ran the command
laptop@openplotter:/usr/local/lib/python3.9/dist-packages/pypilot $ python boatimu.py
imu process 4881
pypilotServer process 4883
pypilot_server: bind failed; already running a server?
made imu process realtime
Using settings file RTIMULib.ini
Settings file not found. Using defaults and creating settings file
Failed to open settings file for saveFailed to open SPI bus 0, select 0
Using fusion algorithm Kalman STATE4
ERROR: No IMU Detected 6093.144779401
pypilot_server: bind failed; already running a server?
calibration loaded, starting 4879
pypilot_server: bind failed; already running a server?
pypilot_server: bind failed; already running a server?
pypilot_server: bind failed; already running a server?
pypilot_server: bind failed; already running a server?
pypilot_server: bind failed; already running a server?
pypilot_server: bind failed; already running a server?
I STOPPED THIS WITH CTRL-C
^CProcess Process-2:
Process Process-3:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/pypilot/boatimu.py", line 570, in <module>
Traceback (most recent call last):
Process Process-1:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/pypilot/server.py", line 435, in init
self.server_socket.bind(('0.0.0.0', self.port))
OSError: [Errno 98] Address already in use
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/usr/lib/python3.9/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.9/dist-packages/pypilot/server.py", line 402, in run
self.init()
File "/usr/local/lib/python3.9/dist-packages/pypilot/server.py", line 439, in init
time.sleep(3)
KeyboardInterrupt
main()
File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
self.run()
Of course being a total newbie I don't understand any of the above but I did notice the comment
Using settings file RTIMULib.ini
Settings file not found. Using defaults and creating settings file
Failed to open settings file for saveFailed to open SPI bus 0, select 0
Using fusion algorithm Kalman STATE4
ERROR: No IMU Detected 6093.144779401
Could the file RTIMULib.ini be missing? After searching for the file I found two copies
The first was in directory /home/laptop/.pypilot (14.7Kib last modified 6/6/23 last permissions change 6/6/23 last access 3/6/23)
Second was in directory /home/laptop (14.7Kib last modified 4/6/23 last permissions change 4/6/23 last access 4/6/23)
Today is 7/6/2023 which suggests to me nothing I've done today affected these files.
The content of the file suggests to me it is used to identify and then configure the IMU.
Going back to the directory /usr.local/lib/python3.9/dist-packages/pypilot I entered the command
watch -n.1 python gyro.py This resulted in the Terminal showing
Every 0.1s: python gyro.py openplotter: Wed Jun 7 16:18:21 2023
python: can't open file '/usr/local/lib/python3.9/dist-packages/pypilot/gyro.py'
: [Errno 2] No such file or directory
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
ÿÿÿÿÿÿÿÿÿÿÿÿÿ
I then searched the entire RPi for the file gyro.py and couldn't find it. My assumption is it is only created after the IMU has been identified and configured?
I then tried running the command RTIMULibDrive and received the response Bash: RTIMULibDrive: command not found
I feel a little like Thomas Edison trying everything in the hope something will work. :-)