Thanks @Sean and @ironman for your thoughts and suggestions.
Sorry for my delayed reply. I was waiting for the new IMU sensor to see if it can be detected now and can contribute indirectly to solving the motor controller error. But sadly no... IMU is still not detected and motor controller error persists. And I have not heard back from the person who sold me the board.
Back to @ironman's suggestion to run pypilot at the prompt to get more log info:
Code:
pi@openplotter:~ $ sudo service pypilot stop
pi@openplotter:~ $ pypilot
autopilot start 1198.720886858
world magnetic model not available
ERROR loading wind.py cannot import name 'HeadingOffset' from partially initialized module 'pypilot.autopilot' (most likely due to a circular import) (/usr/local/lib/python3.9/dist-packages/pypilot/autopilot.py) cannot import name 'HeadingOffset' from partially initialized module 'pypilot.autopilot' (most likely due to a circular import) (/usr/local/lib/python3.9/dist-packages/pypilot/autopilot.py)
imu process 2987
nmea process 2991
listening on port 20220 for nmea connections
gps process 2994
made imu process realtime
Using settings file RTIMULib.ini
Settings file RTIMULib.ini loaded
Failed to open SPI bus 0, select 1
Using fusion algorithm Kalman STATE4
loading servo calibration /home/pi/.pypilot/servocalibration
WARNING: using default servo calibration!!
Available Pilots: ['absolute', 'basic']
warning: failed to open special file /dev/watchdog0 for writing
cannot stroke the watchdog
pypilotServer process 2998
pypilotinit complete 1199.137328855
load file /home/pi/.pypilot/pypilot.conf
store_file /home/pi/.pypilot/pypilot.conf.bak 1199.167
server setup has 6 pipes
imu rate set to rate 20
zeroconf addresses ['10.10.10.1', '127.0.0.1', '192.168.88.154'] 3
signalk zeroconf service add openplotter (2)._http._tcp.local. _http._tcp.local.
Exception in thread zeroconf-Engine:
Traceback (most recent call last):
File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
self.run()
File "/usr/lib/python3/dist-packages/zeroconf/__init__.py", line 1228, in run
reader.handle_read(socket_)
File "/usr/lib/python3/dist-packages/zeroconf/__init__.py", line 1301, in handle_read
self.zc.handle_response(msg)
File "/usr/lib/python3/dist-packages/zeroconf/__init__.py", line 2501, in handle_response
imu rate set to rate 20
with self._handlers_lock:
AttributeError: 'Zeroconf' object has no attribute '_handlers_lock'
setting initial gyro bias [0.0, 0.0, 0.0]
gps filter process 2997
Failed to open SPI bus 0, select 1
signalk zeroconf service add Victron._http._tcp.local. _http._tcp.local.
gpsd connected
GPSD devices []
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
calibration loaded, starting 2985
servo probe ('/dev/ttyAMA0', 38400) 1204.267752892
server/client is running too _slowly_ 0.09196797799995693
signalk process 2993
Failed to open SPI bus 0, select 1
signalkread token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiI1NTNjZGYyYi1hMTAzLTQ0OGQtYmQ2NS0wMjNiNTFmNDlkYmYiLCJpYXQiOjE3MDA4ODMwMTQsImV4cCI6MTczMjQ0MDYxNH0.tIlw3CsO2jtevBPunrZ5ZvHP4CBW0e9U1x40tXhW4n0
signalk server found 192.168.88.154:3000
signalk found ws://192.168.88.154:3000/signalk/v1/stream?subscribe=none
signalk connected to ws://192.168.88.154:3000/signalk/v1/stream?subscribe=none
Failed to open SPI bus 0, select 1
sensor found gps signalk maiana.GPsignalk Wed Dec 6 23:08:21 2023
Failed to open SPI bus 0, select 1
nmea probe ('pypilot', 38400)
failed to open ('pypilot', 38400) for nmea data [Errno 2] could not open port pypilot: [Errno 2] No such file or directory: 'pypilot'
nmea probe ('pypilot', 4800)
failed to open ('pypilot', 4800) for nmea data [Errno 2] could not open port pypilot: [Errno 2] No such file or directory: 'pypilot'
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
servo probe ('pypilot', 38400) 1213.429507218
failed to open servo on: ('pypilot', 38400) [Errno 2] could not open port pypilot: [Errno 2] No such file or directory: 'pypilot'
Failed to open SPI bus 0, select 1
sensor lost gps signalk maiana.GPsignalk Wed Dec 6 23:08:29 2023
Failed to open SPI bus 0, select 1
sensor found gps signalk maiana.GNsignalk Wed Dec 6 23:08:30 2023
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
servo probe ('/dev/ttyAMA0', 38400) 1223.703527951
nmea probe ('pypilot', 38400)
failed to open ('pypilot', 38400) for nmea data [Errno 2] could not open port pypilot: [Errno 2] No such file or directory: 'pypilot'
nmea probe ('pypilot', 4800)
failed to open ('pypilot', 4800) for nmea data [Errno 2] could not open port pypilot: [Errno 2] No such file or directory: 'pypilot'
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
servo probe ('pypilot', 38400) 1232.883809123
failed to open servo on: ('pypilot', 38400) [Errno 2] could not open port pypilot: [Errno 2] No such file or directory: 'pypilot'
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
servo probe ('/dev/ttyAMA0', 38400) 1243.162751084
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
nmea probe ('pypilot', 38400)
failed to open ('pypilot', 38400) for nmea data [Errno 2] could not open port pypilot: [Errno 2] No such file or directory: 'pypilot'
nmea probe ('pypilot', 4800)
failed to open ('pypilot', 4800) for nmea data [Errno 2] could not open port pypilot: [Errno 2] No such file or directory: 'pypilot'
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
servo probe ('pypilot', 38400) 1252.341124935
failed to open servo on: ('pypilot', 38400) [Errno 2] could not open port pypilot: [Errno 2] No such file or directory: 'pypilot'
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
servo probe ('/dev/ttyAMA0', 38400) 1262.611576002
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
nmea probe ('pypilot', 38400)
failed to open ('pypilot', 38400) for nmea data [Errno 2] could not open port pypilot: [Errno 2] No such file or directory: 'pypilot'
Failed to open SPI bus 0, select 1
nmea probe ('pypilot', 4800)
failed to open ('pypilot', 4800) for nmea data [Errno 2] could not open port pypilot: [Errno 2] No such file or directory: 'pypilot'
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
servo probe ('pypilot', 38400) 1271.791032107
failed to open servo on: ('pypilot', 38400) [Errno 2] could not open port pypilot: [Errno 2] No such file or directory: 'pypilot'
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
Failed to open SPI bus 0, select 1
^CTraceback (most recent call last):
File "/usr/local/bin/pypilot", line 33, in <module>
sys.exit(load_entry_point('pypilot==0.42', 'console_scripts', 'pypilot')())
File "/usr/local/lib/python3.9/dist-packages/pypilot/autopilot.py", line 520, in main
ap.iteration()
File "/usr/local/lib/python3.9/dist-packages/pypilot/autopilot.py", line 376, in iteration
time.sleep(pd10)
File "/usr/local/lib/python3.9/dist-packages/pypilot/autopilot.py", line 194, in cleanup
KeyboardInterrupt
closing autopilot