2022-08-07, 09:54 PM
Hi Sean, I re-installed scipy and it now seems to work ok:
>>> import scipy
>>> from scipy.constants import find
>>> find ('newton')
['Newtonian constant of gravitation', 'Newtonian constant of gravitation over h-bar c']
No errors now when I run pypilot_boatimu:
pi@openplotter:~ $ sudo systemctl stop pypilot
pi@openplotter:~ $ sudo systemctl stop pypilot_web
pi@openplotter:~ $ sudo systemctl stop pypilot_boatimu
pi@openplotter:~ $ pypilot_boatimu
imu process 1280
pypilotServer process 1282
server setup has 3 pipes
made imu process realtime
Using settings file RTIMULib.ini
Settings file RTIMULib.ini loaded
Detected MPU9250/MPU9255 at standard address
Using fusion algorithm Kalman STATE4
IMU Name: MPU-925x
min/max compass calibration not in use
Using ellipsoid compass calibration
Using accel calibration
MPU-925x init complete
imu rate set to rate 20 roll -67.25675935968249 heading 30.09384820126436
calibration loaded, starting 1279.48089847781887 heading 35.03466648572864
But, still loosing compass calibration when I reboot. So I re-installed the pypilot version that comes with OpenCPN (0.16) and this saves the calibration ok. Obviously the OpenCPN pypilot plugin no longer connects but at least I have a working autopilot. I think I will leave things like this for now and get on with some sailing!
Many thanks for all your help.
Regards
David
>>> import scipy
>>> from scipy.constants import find
>>> find ('newton')
['Newtonian constant of gravitation', 'Newtonian constant of gravitation over h-bar c']
No errors now when I run pypilot_boatimu:
pi@openplotter:~ $ sudo systemctl stop pypilot
pi@openplotter:~ $ sudo systemctl stop pypilot_web
pi@openplotter:~ $ sudo systemctl stop pypilot_boatimu
pi@openplotter:~ $ pypilot_boatimu
imu process 1280
pypilotServer process 1282
server setup has 3 pipes
made imu process realtime
Using settings file RTIMULib.ini
Settings file RTIMULib.ini loaded
Detected MPU9250/MPU9255 at standard address
Using fusion algorithm Kalman STATE4
IMU Name: MPU-925x
min/max compass calibration not in use
Using ellipsoid compass calibration
Using accel calibration
MPU-925x init complete
imu rate set to rate 20 roll -67.25675935968249 heading 30.09384820126436
calibration loaded, starting 1279.48089847781887 heading 35.03466648572864
But, still loosing compass calibration when I reboot. So I re-installed the pypilot version that comes with OpenCPN (0.16) and this saves the calibration ok. Obviously the OpenCPN pypilot plugin no longer connects but at least I have a working autopilot. I think I will leave things like this for now and get on with some sailing!
Many thanks for all your help.
Regards
David