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
Best tiny pilot image for Pi zero 2w
#1
Which tinypilot image should I download these days for a Pi Zero 2w?

Trying tinypilot_beta_2024_03_09.img.xz from https://pypilot.org/images/ but no green light on the Pi & doesn't seem to boot. 

thnx
Reply
#2
Ive been deep in other projects.. I intend to support a new image for pi zero 2 when I can.

For now it is probably easiest to use a regular pi zero?
Reply
#3
(2024-03-22, 08:59 PM)seandepagnier Wrote: Ive been deep in other projects..  I intend to support a new image for pi zero 2 when I can.

For now it is probably easiest to use a regular pi zero?

Thnx. I'm on OP4 beta on a Pi4 & just got pypilot running I think, looked like it would see the arduino,  GPS & wind so that would be plenty to sail with for now  Cool
pypilot_web is complaining about  No module named 'flask_socketio' but can't be hard to get that installed.

thanks
Reply
#4
So moving on with this, bit background, with a Pi3 I gave up trying to get it to talk to 2 i2c busses at the same time as there's also a hifiberry connected which uses default i2c, seems a Pi 4 works with dtoverlay=i2c6 on pins 15 & 16, calibration comes up in opencpn pypilot plugin & data seems to be coming in OK.
Code:
pi@openplotter:~ $ pypilot_boatimu
imu process 2628
pypilotServer process 2630
made imu process realtime
                         Using settings file RTIMULib.ini
                                                         Settings file RTIMULib.                                                                             ini loaded
          Detected ICM20948 at standard address
                                               Using fusion algorithm Kalman STA                                                                             TE4
   IMU Name: ICM-20948
                      min/max compass calibration not in use
                                                            Using ellipsoid comp                                                                             ass calibration
               Using accel calibration
                                      load file /home/pi/.pypilot/pypilot.conf
                                                                              st                                                                             ore_file /home/pi/.pypilot/pypilot.conf.bak 467.389 False
                                                         server setup has 3 pipe                                                                             s
ICM-20948 init complete
                        zeroconf addresses ['127.0.0.1', '10.42.0.1'] 2
                                                                       pitch -2.                                                                             imu rate set to rate 20169.69565408255926 heading 268.75079139112387
                       IMU all sensor axes verified
                                                   server add socket ('10.42.0.5                                                                             9', 60385)
          setting initial gyro bias [0.53, -0.38, 0.09]
                                                       pitch 9.968141252478437 r                                                                             server add socket ('127.0.0.1', 37210)9888674553 heading 186.8374263928413
                                      pitch 10.22276884993435 roll 13.9835630346                                                                             zeroconf exception: 440733955244
                    e is
                         pitch 10.464279148985108 roll 15.376181064311123 headin                                                                             calibration loaded, starting 2626733430482543021 heading 189.99119442658977
                                 pitch 9.580892418421367 roll 13.081763849328052                                                                             server remove socket ('10.42.0.59', 60385)
                                          server add socket ('10.42.0.59', 54420                                                                             )
server remove socket ('10.42.0.59', 54420)91173 heading 189.1020563959448
server add socket ('10.42.0.59', 55100)   pitch 10.35204311981687 roll 21.02507170917915 heading 189.70402209979974
server remove socket ('10.42.0.59', 55100)612737 heading 190.79874393646702 3821818006 heading 190.29460617800964

So is the best install for Pi4 Bookworm here?
https://github.com/pypilot/pypilot

Seems to work but cn't get the web interface working >

Code:
pi@openplotter:~ $ pypilot_web
Traceback (most recent call last):
  File "/usr/local/bin/pypilot_web", line 33, in <module>
    sys.exit(load_entry_point('pypilot==0.51', 'console_scripts', 'pypilot_web')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/bin/pypilot_web", line 25, in importlib_load_entry_point
    return next(matches).load()
           ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 202, in load
    module = import_module(match.group('module'))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/local/lib/python3.11/dist-packages/pypilot/web/web.py", line 12, in <module>
    from flask_socketio import SocketIO, Namespace, emit, join_room, leave_room, \
ModuleNotFoundError: No module named 'flask_socketio'
pi@openplotter:~ $

Also when running pypilot in a terminal, it gets seen by the opencpn plugin but seems to take over the GPS serial connection, opencpn gets position data from somewhere but the signalk connection doesn't get any data any more.

Any hints how to move forward?

thanks
Reply
#5
(2024-03-23, 12:32 PM)PaddyB Wrote: Found out about white list & blacklist serial ports so that seems to be OK, leaving the arduino visible. And seems to work !! Ram moved back n forward, opencpn plugin works with comass, gps, wind & true wind visible as option. 

Just stuck with..
Code:
pi@openplotter:~ $ pypilot_web
Traceback (most recent call last):
  File "/usr/local/bin/pypilot_web", line 33, in <module>
    sys.exit(load_entry_point('pypilot==0.51', 'console_scripts', 'pypilot_web')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/bin/pypilot_web", line 25, in importlib_load_entry_point
    return next(matches).load()
           ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 202, in load
    module = import_module(match.group('module'))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/local/lib/python3.11/dist-packages/pypilot/web/web.py", line 12, in <module>
    from flask_socketio import SocketIO, Namespace, emit, join_room, leave_room, \
ModuleNotFoundError: No module named 'flask_socketio'
pi@openplotter:~ $

Putting up the main will be so much easier soon I hope  Cool Cool
Reply
#6
Think we in!  Cool Cool

sudo apt-get install -y python3-flask-socketio
Reply
#7
(2024-03-24, 12:09 PM)PaddyB Wrote: Think we in!  Cool Cool

sudo apt-get install -y python3-flask-socketio

Hmm, pypilot is still stealing the serial gps from signalk even though it's not on the white list & is on the black list..  Confused
Reply
#8
could you please show the logs of this and the files? Something is off. if it is in the blacklist file, it wont probe it. Not sure if this post is out of date or not.
Reply
#9
(2024-03-26, 11:46 PM)seandepagnier Wrote: could you please show the logs of this and the files?    Something is off.  if it is in the blacklist file, it wont probe it.  Not sure if this post is out of date or not.
Updated the other thread, it was GPSD not pypilot.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)