2021-09-26, 01:50 PM
Hello all,
I am experiencing an issue with recently received pypilot hat from Sean store hooked to a raspberrypi zero with tinypilot (latest distribution : https://pypilot.org/download.php?Down=im..._27.img.xz).
The issue is with the IMU detection :
- Raspberrypi zero with tinypilot tinypilot_2020_10_27.img.xz
- Motor controller not connected (I am testing first the hat and then will hook the controller)
- At start, after splashscreen, the LCD screen display : error compass or gyro failure
- the pypilot log report the following :
I am not certain about the 'Failed to open SPI bus 0'
- Verification of i2c connexion to the IMU (after installing i2cdetect on tinycore : tce-load -wi i2c-tools):
The address seems to correspond to MPU9255
- Check of running python code
This seems to indicate that all pypilot code is running as expected (autopilot, web and hat)
- Trial with previous tinypilot distribution (https://pypilot.org/download.php?Down=im...019.img.xz) gives similar behavior (no IMU detection).
Would someone have any hint about this situation, experienced something similar or have any suggestion ?
Best regards,
Xavier.
I am experiencing an issue with recently received pypilot hat from Sean store hooked to a raspberrypi zero with tinypilot (latest distribution : https://pypilot.org/download.php?Down=im..._27.img.xz).
The issue is with the IMU detection :
- Raspberrypi zero with tinypilot tinypilot_2020_10_27.img.xz
- Motor controller not connected (I am testing first the hat and then will hook the controller)
- At start, after splashscreen, the LCD screen display : error compass or gyro failure
- the pypilot log report the following :
Code:
2020-03-14_11:00:17.53101 ERROR loading intellect.py invalid syntax (intellect.py, line 205) invalid syntax (intellect.py, line 205)
2020-03-14_11:00:17.53191 ERROR loading learning.py invalid syntax (intellect.py, line 205) invalid syntax (intellect.py, line 205)
2020-03-14_11:00:17.83332 Settings file RTIMULib.ini loaded
2020-03-14_11:00:17.83376 Failed to open settings file for saveFailed to open SPI bus 0, select 0
2020-03-14_11:00:17.84324 Failed to open SPI bus 0, select 1
2020-03-14_11:00:17.84331 No IMU detected
2020-03-14_11:00:17.84335 Using fusion algorithm Kalman STATE4
2020-03-14_11:00:18.16319 loading servo calibration /home/tc/.pypilot/servocalibration
2020-03-14_11:00:18.16335 WARNING: using default servo calibration!!
2020-03-14_11:00:18.16343 Loaded Pilots: ['absolute', 'basic', 'simple']
2020-03-14_11:00:18.16352 warning: failed to open special file /dev/watchdog0 for writing
2020-03-14_11:00:18.16360 cannot stroke the watchdog
2020-03-14_11:00:18.84126 Failed to open SPI bus 0, select 0
2020-03-14_11:00:18.84137 Failed to open SPI bus 0, select 1
2020-03-14_11:00:18.84142 No IMU detected
2020-03-14_11:00:18.84147 Using fusion algorithm Kalman STATE4
2020-03-14_11:00:19.84542 Failed to open SPI bus 0, select 0
2020-03-14_11:00:19.84554 Failed to open SPI bus 0, select 1
2020-03-14_11:00:19.84559 No IMU detected
- Verification of i2c connexion to the IMU (after installing i2cdetect on tinycore : tce-load -wi i2c-tools):
Code:
tc@box:~$ i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
- Check of running python code
Code:
tc@box:~$ ps -A | grep pilot
572 root runsv pypilot_hat
579 root runsv pypilot_web
581 root runsv pypilot
584 tc svlogd -tt /var/log/pypilot_hat
586 tc svlogd -tt -b 24 -l 16 /var/log/pypilot_web
587 tc svlogd -tt -b 24 -l 16 /var/log/pypilot
960 tc {python3.6} pypilot /usr/local/lib/python3.6/site-packages/pypilot/autopilot.py
1030 root {python3.6} pypilot_hat /usr/local/lib/python3.6/site-packages/pypilot/hat/hat.py
1319 tc {python3.6} pypilot /usr/local/lib/python3.6/site-packages/pypilot/autopilot.py
1320 tc {python3.6} pypilot /usr/local/lib/python3.6/site-packages/pypilot/autopilot.py
1327 tc {python3.6} pypilot /usr/local/lib/python3.6/site-packages/pypilot/autopilot.py
1328 tc {python3.6} pypilot /usr/local/lib/python3.6/site-packages/pypilot/autopilot.py
1331 tc {python3.6} pypilot /usr/local/lib/python3.6/site-packages/pypilot/autopilot.py
1332 tc {python3.6} pypilot /usr/local/lib/python3.6/site-packages/pypilot/autopilot.py
1371 root {python3.6} pypilot_hat /usr/local/lib/python3.6/site-packages/pypilot/hat/hat.py
1372 root {python3.6} pypilot_hat /usr/local/lib/python3.6/site-packages/pypilot/hat/hat.py
2495 root {pypilot_web} /usr/local/bin/python3.6 /usr/local/bin/pypilot_web 80
4394 tc grep pilot
- Trial with previous tinypilot distribution (https://pypilot.org/download.php?Down=im...019.img.xz) gives similar behavior (no IMU detection).
Would someone have any hint about this situation, experienced something similar or have any suggestion ?
Best regards,
Xavier.