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
#41
Here my test in fresh Raspbian for python 2 and python 3. Pypilot does not work on any of them

python3
#######

sudo apt autoremove sense-hat

sudo apt install python3-serial libpython3-dev python3-numpy python3-scipy swig python3-ujson  python3-pyudev python3-pil python3-flask python3-opengl python3-pip python3-dev python3-setuptools python3-flask-socketio libatlas-base-dev python3-wxgtk4.0

sudo pip3 install pywavefront pyglet gps gevent-websocket python-socketio tensorflow

git clone https://github.com/seandepagnier/RTIMULib2.git
cd RTIMULib2/Linux
cd python
sudo python3 setup.py build
sudo python3 setup.py install
cd
git clone https://github.com/pypilot/pypilot
git clone https://github.com/pypilot/pypilot_data
cp -rv pypilot_data/* pypilot
cd pypilot
sudo python3 setup.py build
sudo python3 setup.py install
cd
mkdir .pypilot

result
------------------------------------------------------------------------
2020-01-18 16:05:53.666728: 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 RTIMULib.ini loaded
Using settings file RTIMULib.ini
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

Fast drifting
pitch 6.324074922525247 roll -91.53618928287831 heading 75.27876668630839   
pitch -44.22218193641304 roll 175.96489709053526 heading 6.5329903265509754

Alignment reset in calibration window does not work.
Boat is not rendered


python2
#######

sudo apt autoremove sense-hat

sudo apt install python-serial libpython-dev python-numpy python-scipy swig python-ujson  python-pyudev python-pil python-flask python-opengl python-pip python-dev python-setuptools python-wxgtk3.0

sudo pip install pywavefront pyglet gps gevent-websocket python-socketio flask-socketio

# unable to install tensorflow for python2

git clone https://github.com/seandepagnier/RTIMULib2.git
cd RTIMULib2/Linux
cd python
sudo python setup.py build
sudo python setup.py install
cd
git clone https://github.com/pypilot/pypilot
git clone https://github.com/pypilot/pypilot_data
cp -rv pypilot_data/* pypilot
cd pypilot
sudo python setup.py build
sudo python setup.py install
cd
mkdir .pypilot

result
------------------------------------------------------------------------
ERROR loading learning.py No module named tensorflow ,  No module named learning
ERROR loading learning.py No module named tensorflow ,  No module named learning
Settings file RTIMULib.ini loaded
Using settings file RTIMULib.ini
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

Slow but continous drifting:
pitch -1.02317380473 roll -92.9565552682 heading 76.9911142959
pitch -1.24983757477 roll -91.073889727 heading 78.5113350684

Alignment reset in calibration window does not work.
Boat is rendered
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 Sailoog - 2020-01-18, 05:23 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

Forum Jump:


Users browsing this thread: 1 Guest(s)