This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MPU9250 heading is slowly drifting
#85
I dont know where to run "sudo python3 setup.py install

pi@openplotter:~ $ python3 setup.py install
python3: can't open file 'setup.py': [Errno 2] No such file or directory
pi@openplotter:~ $ ls .pypilot
pypilot.conf  pypilot.conf.bak  pypilot.conf.old  RTIMULib.ini.sav  signalk.conf

So I ran the pypilot_boatimu, and got some interesting data.
I think when the pypilot_boatimu.service is running the delay I see is it getting restarted.
On the CLI it just aborts.

pi@openplotter:/ $ sudo systemctl pypilot_boatimu.service
pi@openplotter:/ $ /usr/local/bin/pypilot_boatimu

2020-01-26 12:48:56.381797: E tensorflow/core/platform/hadoop/hadoop_file_system.cc:132] HadoopFileSystem load error: libhdfs.so: cannot open shared object file: No such file or directory
Settings file not found. Using defaults and creating settings file
Failed to open settings file for saveUsing settings file RTIMULib.ini
Detected MPU9250/MPU9255 at standard address
Failed to open settings file for save
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
accelfit count 1 7694869 roll -77.50676728185351 heading 342.28544210815704  
accelfit count 2 27485174 roll -152.2621289283252 heading 303.7283570507189 4  
accelfit count 2 6677834 roll -140.08888877750096 heading 289.10159283028685  
FitPointsCompass [[14.2557133436203, -43.67223858833313, 22.100274920463562, -0.1235603175559481, -0.8430772661834296, 0.5136304375772691, -0.030890079388987024, -0.2107693165458574, 0.12840760939431728], [20.78366084098816, -43.423911857604985, 22.94057931900024, -0.03809630500012289, -0.9119414391868278, 0.4002456505365452, -0.009524076250030723, -0.22798535979670695, 0.1000614126341363], [32.866821722550824, 6.200708475979892, 35.537058743563556, 0.07808928338389783, 0.24761561321761083, 0.9655241785772803, 0.019522320845974456, 0.06190390330440271, 0.2413810446443201], [23.98492169380188, -43.73866033554077, 21.939056873321533, 0.1374177011771569, -0.8576179501997436, 0.49338184595299334, 0.034354425294289226, -0.2144044875499359, 0.12334546148824833], [17.30472755432129, -43.78429889678955, 23.101877212524414, -0.07120380195671716, -0.8721650268469405, 0.4839276926879126, -0.01780095048917929, -0.21804125671173513, 0.12098192317197815], [22.458370685577393, -43.77533435821533, 22.425469875335693, 0.10954605092977765, -0.846014700496456, 0.521343804383424, 0.027386512732444412, -0.211503675124114, 0.130335951095856], [15.5418758392334, -43.658793449401855, 22.89375114440918, -0.1137152051903092, -0.8691425551188191, 0.48116646517166545, -0.0284288012975773, -0.21728563877970478, 0.12029161629291636], [18.56390619277954, -43.51535415649414, 22.442813873291016, 0.037614063240518636, -0.8208234619587575, 0.5699094739263064, 0.009403515810129659, -0.2052058654896894, 0.1424773684815766], [13.239375591278076, -43.533284187316895, 21.26343822479248, -0.1284906512261399, -0.8190881216126877, 0.5590914145609094, -0.032122662806534974, -0.20477203040317193, 0.13977285364022735]] [0, 0, 0, 30, 0] [0.0, 1.0000000000000002, 0.0]
Process Process-2:
Traceback (most recent call last):
 File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
   self.run()
 File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run
   self._target(*self._args, **self._kwargs)
 File "/usr/local/lib/python3.7/dist-packages/pypilot-0.12-py3.7-linux-armv7l.egg/pypilot/calibration_fit.py", line 614, in CalibrationProcess
   fit = FitCompass(compass_cal, compass_calibration, norm)
 File "/usr/local/lib/python3.7/dist-packages/pypilot-0.12-py3.7-linux-armv7l.egg/pypilot/calibration_fit.py", line 496, in FitCompass
   fit = FitPointsCompass(p, compass_calibration, norm)
 File "/usr/local/lib/python3.7/dist-packages/pypilot-0.12-py3.7-linux-armv7l.egg/pypilot/calibration_fit.py", line 189, in FitPointsCompass
   guess.append((diff[0]+diff[1]+diff[2])/3)
AttributeError: 'map' object has no attribute 'append'
got signal 17 cleaning up
got signal 15 cleaning up
Process Process-3:
Traceback (most recent call last):
 File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
   self.run()
 File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run
   self._target(*self._args, **self._kwargs)
 File "/usr/local/lib/python3.7/dist-packages/pypilot-0.12-py3.7-linux-armv7l.egg/pypilot/boatimu.py", line 147, in imu_process
   time.sleep(t)
 File "/usr/local/lib/python3.7/dist-packages/pypilot-0.12-py3.7-linux-armv7l.egg/pypilot/boatimu.py", line 487, in cleanup
   raise KeyboardInterrupt # to get backtrace on all processes
KeyboardInterrupt
Traceback (most recent call last):
 File "/usr/local/bin/pypilot_boatimu", line 11, in <module>
   load_entry_point('pypilot==0.12', 'console_scripts', 'pypilot_boatimu')()
 File "/usr/local/lib/python3.7/dist-packages/pypilot-0.12-py3.7-linux-armv7l.egg/pypilot/boatimu.py", line 530, in main
   boatimu.iteration()
 File "/usr/local/lib/python3.7/dist-packages/pypilot-0.12-py3.7-linux-armv7l.egg/pypilot/boatimu.py", line 522, in iteration
   time.sleep(dt)
 File "/usr/local/lib/python3.7/dist-packages/pypilot-0.12-py3.7-linux-armv7l.egg/pypilot/boatimu.py", line 487, in cleanup
   raise KeyboardInterrupt # to get backtrace on all processes
KeyboardInterrupt
got signal atexit cleaning up
got signal 15 cleaning up
Process Process-1:
Traceback (most recent call last):
 File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
   self.run()
 File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run
   self._target(*self._args, **self._kwargs)
 File "/usr/local/lib/python3.7/dist-packages/pypilot-0.12-py3.7-linux-armv7l.egg/signalk/pipeserver.py", line 157, in pipe_server_process
   time.sleep(.1)
 File "/usr/local/lib/python3.7/dist-packages/pypilot-0.12-py3.7-linux-armv7l.egg/pypilot/boatimu.py", line 487, in cleanup
   raise KeyboardInterrupt # to get backtrace on all processes
KeyboardInterrupt
got signal 17 cleaning up
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
 File "/usr/lib/python3.7/multiprocessing/popen_fork.py", line 28, in poll
   pid, sts = os.waitpid(self.pid, flag)
 File "/usr/local/lib/python3.7/dist-packages/pypilot-0.12-py3.7-linux-armv7l.egg/pypilot/boatimu.py", line 487, in cleanup
   raise KeyboardInterrupt # to get backtrace on all processes
KeyboardInterrupt
terminate imu process
terminate calibration process
pi@openplotter:/ $
Reply


Messages In This Thread
RE: MPU9250 heading is slowly drifting - by wdee - 2020-01-17, 04:08 PM
RE: MPU9250 heading is slowly drifting - by Lazzz - 2020-01-21, 09:16 PM
RE: MPU9250 heading is slowly drifting - by Lazzz - 2020-01-22, 05:39 AM
RE: MPU9250 heading is slowly drifting - by diyc235 - 2020-01-26, 07:19 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)