how is generated RTIMULib.ini / RTIMULibTemp.ini to be used by openplotterPypilot or pypilot_boatimu?
I need to put some non default values in and I see it is always created default...
ps.
I think
orangepi@orangepi5:~$ pwd
/home/orangepi
orangepi@orangepi5:~$ ls -ltr RTIMULib.ini
-rw-rw-r-- 1 orangepi orangepi 15101 mar 29 14:05 RTIMULib.ini
is used by pypilot_boatimu started manually:
orangepi@orangepi5:~$ pypilot_boatimu
imu process 2014
pypilotServer process 2016
server setup has 3 pipes
wykonane imu proces w czasie rzeczywistym
Korzystanie z pliku ustawień RTIMULib.ini
Settings file RTIMULib.ini loaded
Detected ICM20948 at standard address
Using fusion algorithm Kalman STATE4
IMU Name: ICM-20948
min/max compass calibration not in use
Using ellipsoid compass calibration
Using accel calibration
zeroconf addresses ['127.0.0.1', '192.168.8.120'] 2
ICM-20948 init complete
ustawienie początkowego odchylenia żyroskopu [-0.588, -0.403, -0.023]283629
stawka imu ustawiona na stawkę 20
zeroconf exception: 5028 roll 168.0318854080799 heading 102.46640006272229
kalibracja załadowana, start 201392784651440795 heading 99.74233852523841
^CProcess Process-3:088 roll 167.88251065344085 heading 99.97089774537334
but if I go to different folder and try to start
orangepi@orangepi5:~/work$ pypilot_boatimu
imu process 2196
pypilotServer process 2198
server setup has 3 pipes
wykonane imu proces w czasie rzeczywistym
Korzystanie z pliku ustawień RTIMULib.ini
Settings file not found. Using defaults and creating settings file
Failed to open SPI bus 0, select 0
Using fusion algorithm Kalman STATE4
BŁĄD: Nie wykryto IMU 504.811615282
zeroconf addresses ['127.0.0.1', '192.168.8.120'] 2
stawka imu ustawiona na stawkę 20
ustawienie początkowego odchylenia żyroskopu [-0.588, -0.403, -0.023]
stawka imu ustawiona na stawkę 20
no settings found -> creation of new settings file with default values
but if I change config file location in boatimu.py (for example "general" in /usr/local/lib/python3.10/dist-packages/pypilot/RTIMULib.ini)
with
55 SETTINGS_FILE = "/usr/local/lib/python3.10/dist-packages/pypilot/RTIMULib"
it works any location and any user
root@orangepi5:/tmp# pypilot_boatimu
imu process 2384
pypilotServer process 2386
failed to load pypilot.conf [Errno 2] No such file or directory: '/root/.pypilot/pypilot.conf'
backup data failed as well [Errno 2] No such file or directory: '/root/.pypilot/pypilot.conf.bak'
server setup has 3 pipes
made imu process realtime
Using settings file /usr/local/lib/python3.10/dist-packages/pypilot/RTIMULib.ini
Settings file /usr/local/lib/python3.10/dist-packages/pypilot/RTIMULib.ini loaded
Detected ICM20948 at standard address
Using fusion algorithm Kalman STATE4
IMU Name: ICM-20948
min/max compass calibration not in use
Using ellipsoid compass calibration
Using accel calibration
zeroconf addresses ['127.0.0.1', '192.168.8.120'] 2
ICM-20948 init complete
imu rate set to rate 208 roll 168.08898910115389 heading 100.03160914381563
zeroconf exception: 3097 roll 167.69941282813272 heading 100.17036512314208
^CProcess Process-3:0603 roll 167.2410948896507 heading 99.89425885391276