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
IMU connected to a Laptop?
#8
I followed https://github.com/pypilot/pypilot to compile and install pypilot successfully.
Now I tried getting the IMU to work again but so far without success. It seems like pypilot_boatimu is using a config file it creates in the user's home directory called RTIMULib.ini
In there we can find a number of config options like whether to use I2C or SPI for communication. I hooked my sensor up to I2C but the output of pypilot_boatimu suggests that it is ignoring that setting and is instead looking for SPI-0, Select 0 instead.
I changed things in the config file and none of my settings are respected at the moment. However, it does look like pypilot can connect when the server is running and I start the UI from within OpenCPN. So there is a way, I just need the IMU sensor to come up.


chartplotter@chartplotter-Satellite-U505:~$ pypilot_boatimu
imu process 22259
pypilotServer process 22261
server setup has 3 pipes
[sudo] password for chartplotter: zeroconf addresses ['192.168.1.52', '127.0.0.1'] 2
zeroconf exception:

made imu process realtime
Using settings file RTIMULib.ini
Settings file RTIMULib.ini loaded
Failed to open SPI bus 0, select 0
Using fusion algorithm Kalman STATE4
ERROR: No IMU Detected 1158.533589643
imu rate set to rate 20
setting initial gyro bias [0.0, 0.0, 0.0]
calibration loaded, starting 22257
Reply


Messages In This Thread
IMU connected to a Laptop? - by McNugget - 2020-02-14, 12:31 AM
RE: IMU connected to a Laptop? - by jim321 - 2020-02-14, 11:26 AM
RE: IMU connected to a Laptop? - by ddelorme - 2020-02-14, 03:33 PM
RE: IMU connected to a Laptop? - by jim321 - 2020-02-14, 04:14 PM
RE: IMU connected to a Laptop? - by McNugget - 2020-04-17, 06:33 PM
RE: IMU connected to a Laptop? - by McNugget - 2023-07-22, 04:42 PM
RE: IMU connected to a Laptop? - by McNugget - 2023-07-22, 06:07 PM
RE: IMU connected to a Laptop? - by McNugget - 2023-07-22, 07:50 PM
RE: IMU connected to a Laptop? - by McNugget - 2023-07-23, 11:48 PM
RE: IMU connected to a Laptop? - by McNugget - 2023-07-24, 12:51 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)