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
Issue with tinycore + pypilot hat / Does not find IMU
#8
(2021-09-27, 09:12 AM)damien Wrote: Hello,

OK ; compilation executed and everything works fine by now.

Here follows the commands for compilation for the ones interested with tinypilot_2020_10_27.img.xz image:
Code:
# *** Compile last git version of RTIMULib2 ***
# Prepare directories, get last git and compress in .tar.gz (expected by python-RTIMULib.build)
cd ~
mkdir RTIMULib_update
cd RTIMULib_update
git clone git://github.com/seandepagnier/RTIMULib2.git
tar czvf RTIMULib2.tar.gz RTIMULib2
rm -rf RTIMULib2
# Extract, rename, compile and generate squashfs (to make persitent)
sudo sh /mnt/mmcblk0p2/tinypilot/pypilot_dependencies/python-RTIMULib/python-RTIMULib.build

# *** Reboot... ***
sudo reboot
The script python-RTIMULib.build execute the compilation and generation of the package necessary for the specific structure (RAM filesystem) of tinycore (tinypilot base) ; looking at the code is interesting.

Here is the extract of /var/log/pypilot/current:
Code:
2020-03-14_11:00:17.41751 ERROR loading intellect.py invalid syntax (intellect.py, line 205)   invalid syntax (intellect.py, line 205)
2020-03-14_11:00:17.41853 ERROR loading learning.py invalid syntax (intellect.py, line 205)   invalid syntax (intellect.py, line 205)
2020-03-14_11:00:17.67724 Settings file RTIMULib.ini loaded
2020-03-14_11:00:17.67736 Failed to open settings file for saveDetected ICM20948 at standard address
2020-03-14_11:00:17.68017 Failed to open settings file for saveUsing fusion algorithm Kalman STATE4
2020-03-14_11:00:17.68030 min/max compass calibration not in use
2020-03-14_11:00:17.68334 Using ellipsoid compass calibration
2020-03-14_11:00:17.68341 Using accel calibration
2020-03-14_11:00:18.00325 ICM-20948 init complete
2020-03-14_11:00:18.07324 loading servo calibration /home/tc/.pypilot/servocalibration
2020-03-14_11:00:18.07338 WARNING: using default servo calibration!!
2020-03-14_11:00:18.07347 Loaded Pilots: ['absolute', 'basic', 'simple']
2020-03-14_11:00:18.07355 warning: failed to open special file /dev/watchdog0 for writing
2020-03-14_11:00:18.07363          cannot stroke the watchdog
ICM20948 is indeed recognized ; tests indicate that driver is operational.

Thanks Sean for the advices, time, dedication and all work ; always deeply impressed !

Best,

Xavier.
Hello Xavier,
I have the very same problem you got as i've just received a new Pypilot hat a few days ago, I understand the git clone command works only if the raspberry is connected to the internet how do i do that please?
Reply


Messages In This Thread
RE: Issue with tinycore + pypilot hat / Does not find IMU - by MBJ335 - 2021-10-03, 12:17 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)