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
Raspberry pi 5 and OP4
#1
Raspberry pi 5 hit the market, and it requires OP4, pypilot is not included in standard installer.
However it is really faster, my home desktop is not so fast :-)

Does somebody have good experience to run pypilot on Rpi5 with OnenPlotter 4.x
Is it possible at all?
Reply
#2
I do not yet have a pi5.. I have read the gpio has changed which will break pypilot support for wired buttons, but hopefully not too much else is an issue.
Reply
#3
(2024-02-14, 07:35 AM)seandepagnier Wrote: I do not yet have a pi5..  I have read the gpio has changed which will break pypilot support for wired buttons, but hopefully not too much else is an issue.

Yesterday I installed  pypilot from github, After manual install of couple libs on python3 though apt-get, I was able to pipilot installation finish without errors.
Result. Pypilot itself looks starting well , able to find IMU, gpsd and motor controller, but struggling to connect to signalK. 
Pipilot_control - Looks working well.
Pipilot_calibration - crashing with attempt to start, did not dig deep enough to be more specific.
wired buttons ... - i do not care for now
Pipilot_web - did not try yet. hope, calibration may work there

If you can help me to understand how to connect it manually from CLI, I would appreciate. I would like to have IMU data in signalK (specially compass)
Reply
#4
I had to install two additional packages to start pypiton (for now) on RPI5 + OP4
sudo apt-get install python3-importlib-metadata
sudo apt install python3-flask-socketio



Pypilot - Looks working well, but i need to "friend" it to signalK, PLEASE HELP.
Pipilot_control - Looks working well. No issues found so far.
Pypilot_web - works well. No issues found so far.



pipilot_calibration -- crashes with this traceback. Any ideas?

pi@openplotter:~ $ pypilot_calibration
Traceback (most recent call last):
File "/usr/local/bin/pypilot_calibration", line 33, in <module>
sys.exit(load_entry_point('pypilot==0.49', 'console_scripts', 'pypilot_calibration')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/pypilot/ui/autopilot_calibration.py", line 428, in main
CalibrationDialog().ShowModal()
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/pypilot/ui/autopilot_calibration.py", line 29, in __init__
super(CalibrationDialog, self).__init__(None)
File "/usr/local/lib/python3.11/dist-packages/pypilot/ui/autopilot_control_ui.py", line 412, in __init__
self.m_panel4.SetSizer( fgSizer22 )
wx._core.wxAssertionError: C++ assertion "CheckExpectedParentIs(w, m_containingWindow)" failed at ./src/common/sizer.cpp(887) in SetContainingWindow(): Windows managed by the sizer associated with the given window must have this window as parent, otherwise they will not be repositioned correctly.

Please use the window wxPanel@0xa083000 ("panel") with which this sizer is associated, as the parent when creating the window wxGLCanvas@0x9f4b800 ("GLCanvas") managed by it.
Exception ignored in: <function CalibrationDialogBase.__del__ at 0x7fff420936a0>
Traceback (most recent call last):
File "/usr/local/lib/python3.11/dist-packages/pypilot/ui/autopilot_control_ui.py", line 953, in __del__
self.m_notebook.Unbind( wx.EVT_NOTEBOOK_PAGE_CHANGED, None )
File "/usr/lib/python3/dist-packages/wx/core.py", line 1493, in _EvtHandler_Unbind
return event.Unbind(self, id, id2, handler)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/wx/core.py", line 1562, in Unbind
success += int(target.Disconnect(id1, id2, et, handler))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: wrapped C/C++ object of type Notebook has been deleted
Reply
#5
(2024-02-15, 05:54 AM)partyvi Wrote: I had to install two additional packages to start pypiton (for now)  on RPI5 + OP4
sudo apt-get install python3-importlib-metadata
sudo apt install python3-flask-socketio



Pypilot - Looks working well, but i need to "friend" it to signalK, PLEASE HELP.
Pipilot_control - Looks working well. No issues found so far.
Pypilot_web - works well. No issues found so far.



pipilot_calibration  -- crashes with this traceback. Any ideas?

pi@openplotter:~ $ pypilot_calibration
Traceback (most recent call last):
  File "/usr/local/bin/pypilot_calibration", line 33, in <module>
    sys.exit(load_entry_point('pypilot==0.49', 'console_scripts', 'pypilot_calibration')())
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/pypilot/ui/autopilot_calibration.py", line 428, in main
    CalibrationDialog().ShowModal()
    ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/pypilot/ui/autopilot_calibration.py", line 29, in __init__
    super(CalibrationDialog, self).__init__(None)
  File "/usr/local/lib/python3.11/dist-packages/pypilot/ui/autopilot_control_ui.py", line 412, in __init__
    self.m_panel4.SetSizer( fgSizer22 )
wx._core.wxAssertionError: C++ assertion "CheckExpectedParentIs(w, m_containingWindow)" failed at ./src/common/sizer.cpp(887) in SetContainingWindow(): Windows managed by the sizer associated with the given window must have this window as parent, otherwise they will not be repositioned correctly.

Please use the window wxPanel@0xa083000 ("panel") with which this sizer is associated, as the parent when creating the window wxGLCanvas@0x9f4b800 ("GLCanvas") managed by it.
Exception ignored in: <function CalibrationDialogBase.__del__ at 0x7fff420936a0>
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/dist-packages/pypilot/ui/autopilot_control_ui.py", line 953, in __del__
    self.m_notebook.Unbind( wx.EVT_NOTEBOOK_PAGE_CHANGED, None )
  File "/usr/lib/python3/dist-packages/wx/core.py", line 1493, in _EvtHandler_Unbind
    return event.Unbind(self, id, id2, handler)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/wx/core.py", line 1562, in Unbind
    success += int(target.Disconnect(id1, id2, et, handler))
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: wrapped C/C++ object of type Notebook has been deleted

While you are waiting for OP. You can try released version of BBN where it works. 
https://github.com/bareboat-necessities/...24-02-12.1
Download BBN Marine OS for raspberry pi 

https://bareboat-necessities.github.io/m...at-os.html

Video of actual installation:

https://www.youtube.com/watch?v=3zMjUs2X3qU


Reply
#6
Wink 
(2024-02-15, 05:50 PM)mgrouch Wrote:
(2024-02-15, 05:54 AM)partyvi Wrote: I had to install two additional packages to start pypiton (for now)  on RPI5 + OP4
sudo apt-get install python3-importlib-metadata
sudo apt install python3-flask-socketio



Pypilot - Looks working well, but i need to "friend" it to signalK, PLEASE HELP.
Pipilot_control - Looks working well. No issues found so far.
Pypilot_web - works well. No issues found so far.



pipilot_calibration  -- crashes with this traceback. Any ideas?

pi@openplotter:~ $ pypilot_calibration
Traceback (most recent call last):
  File "/usr/local/bin/pypilot_calibration", line 33, in <module>
    sys.exit(load_entry_point('pypilot==0.49', 'console_scripts', 'pypilot_calibration')())
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/pypilot/ui/autopilot_calibration.py", line 428, in main
    CalibrationDialog().ShowModal()
    ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/pypilot/ui/autopilot_calibration.py", line 29, in __init__
    super(CalibrationDialog, self).__init__(None)
  File "/usr/local/lib/python3.11/dist-packages/pypilot/ui/autopilot_control_ui.py", line 412, in __init__
    self.m_panel4.SetSizer( fgSizer22 )
wx._core.wxAssertionError: C++ assertion "CheckExpectedParentIs(w, m_containingWindow)" failed at ./src/common/sizer.cpp(887) in SetContainingWindow(): Windows managed by the sizer associated with the given window must have this window as parent, otherwise they will not be repositioned correctly.

Please use the window wxPanel@0xa083000 ("panel") with which this sizer is associated, as the parent when creating the window wxGLCanvas@0x9f4b800 ("GLCanvas") managed by it.
Exception ignored in: <function CalibrationDialogBase.__del__ at 0x7fff420936a0>
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/dist-packages/pypilot/ui/autopilot_control_ui.py", line 953, in __del__
    self.m_notebook.Unbind( wx.EVT_NOTEBOOK_PAGE_CHANGED, None )
  File "/usr/lib/python3/dist-packages/wx/core.py", line 1493, in _EvtHandler_Unbind
    return event.Unbind(self, id, id2, handler)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/wx/core.py", line 1562, in Unbind
    success += int(target.Disconnect(id1, id2, et, handler))
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: wrapped C/C++ object of type Notebook has been deleted

While you are waiting for OP. You can try released version of BBN where it works. 
https://github.com/bareboat-necessities/...24-02-12.1

Hi,

If you change line 405 a little bit from autopilot_control_ui.py file then it's start.

self.BoatPlot = wx.glcanvas.GLCanvas(self.m_panel3, attribList=[ wx.glcanvas.WX_GL_RGBA, wx.glcanvas.WX_GL_DOUBLEBUFFER, wx.glcanvas.WX_GL_DEPTH_SIZE, 16, wx.glcanvas.WX_GL_STENCIL_SIZE, 8, 0 ])

to

self.BoatPlot = wx.glcanvas.GLCanvas(self.m_panel4, attribList=[ wx.glcanvas.WX_GL_RGBA, wx.glcanvas.WX_GL_DOUBLEBUFFER, wx.glcanvas.WX_GL_DEPTH_SIZE, 16, wx.glcanvas.WX_GL_STENCIL_SIZE, 8, 0 ])

Looks like there is issue on controls / parents. 
Just now I can't test functionality because my Moitessier Hat (IMU) is broken. 

   
Reply
#7
Thanks for finding this!

I tried pushing change to git to correct it. It is strange indeed.
Reply
#8
one more interesting thing pypilot app hangs itself and terminal where it was open. at least i cant enter anything fro keyboard in it. if i close terminal and open other all ok.

what does the repeating line means? why pypilot teed to reset gps timeoffset?
imu rate set to rate 20
IMU all sensor axes verified
setting initial gyro bias [0.46, 0.05, -0.15]
reset gps timeoffset 19771
sensor found gps serial GN/dev/serial/by-path/platform-xhci-hcd.1-usb-0:2.1.1.1:1.0-port0 Sun Feb 18 07:45:20 2024
gpsd connected
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
calibration loaded, starting 122792
reset gps timeoffset 19771
signalk process 122802
signalkread token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiI1ZjVjMWQ1MC05MzU2LTQyYjQtYWViOC1iNWNkYzJlOTk2ZWMiLCJpYXQiOjE3MDc5NzU1NjIsImV4cCI6MTczOTUzMzE2Mn0.pi3BW7sIS65h5f-4v-LywOg8wqRVLwnSzu8Ul4ytPN0
reset gps timeoffset 19771
signalk server found 10.10.25.224:3000
signalk found ws://10.10.25.224:3000/signalk/v1/stream?subscribe=none
signalk connected to ws://10.10.25.224:3000/signalk/v1/stream?subscribe=none
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
gpsd timeout from lack of data
gpsd disconnected
reset gps timeoffset 19771
reset gps timeoffset 19771
gpsd connected
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
gpsd timeout from lack of data
gpsd disconnected
reset gps timeoffset 19771
reset gps timeoffset 19771
gpsd connected
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
gpsd timeout from lack of data
gpsd disconnected
reset gps timeoffset 19771
reset gps timeoffset 19771
gpsd connected
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
...
Reply
#9
(2024-02-18, 02:52 PM)partyvi Wrote: one more interesting thing pypilot app hangs itself and terminal where it was open. at least i cant enter anything fro keyboard in it. if i close terminal and open other all ok.

what does the repeating line means? why pypilot teed to reset gps timeoffset?
imu rate set to rate 20
IMU all sensor axes verified
setting initial gyro bias [0.46, 0.05, -0.15]
reset gps timeoffset 19771
sensor found gps serial GN/dev/serial/by-path/platform-xhci-hcd.1-usb-0:2.1.1.1:1.0-port0 Sun Feb 18 07:45:20 2024
gpsd connected
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
calibration loaded, starting 122792
reset gps timeoffset 19771
signalk process 122802
signalkread token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiI1ZjVjMWQ1MC05MzU2LTQyYjQtYWViOC1iNWNkYzJlOTk2ZWMiLCJpYXQiOjE3MDc5NzU1NjIsImV4cCI6MTczOTUzMzE2Mn0.pi3BW7sIS65h5f-4v-LywOg8wqRVLwnSzu8Ul4ytPN0
reset gps timeoffset 19771
signalk server found 10.10.25.224:3000
signalk found ws://10.10.25.224:3000/signalk/v1/stream?subscribe=none
signalk connected to ws://10.10.25.224:3000/signalk/v1/stream?subscribe=none
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
gpsd timeout from lack of data
gpsd disconnected
reset gps timeoffset 19771
reset gps timeoffset 19771
gpsd connected
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
gpsd timeout from lack of data
gpsd disconnected
reset gps timeoffset 19771
reset gps timeoffset 19771
gpsd connected
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
gpsd timeout from lack of data
gpsd disconnected
reset gps timeoffset 19771
reset gps timeoffset 19771
gpsd connected
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
...

Thanks for reporting this. pypilot didnt care about the gps timestamp until more recently, and there was an issue here. I tried to improve this in git just now.

Are you running pypilot from the console directly? Are you sure no other services are running? It normally should be able to be killed with ctrl+c. What terminal are you using?
Reply
#10
(2024-02-19, 04:38 AM)seandepagnier Wrote:
(2024-02-18, 02:52 PM)partyvi Wrote: one more interesting thing pypilot app hangs itself and terminal where it was open. at least i cant enter anything fro keyboard in it. if i close terminal and open other all ok.

what does the repeating line means? why pypilot teed to reset gps timeoffset?
imu rate set to rate 20
IMU all sensor axes verified
setting initial gyro bias [0.46, 0.05, -0.15]
reset gps timeoffset 19771
sensor found gps serial GN/dev/serial/by-path/platform-xhci-hcd.1-usb-0:2.1.1.1:1.0-port0 Sun Feb 18 07:45:20 2024
gpsd connected
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
calibration loaded, starting 122792
reset gps timeoffset 19771
signalk process 122802
signalkread token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiI1ZjVjMWQ1MC05MzU2LTQyYjQtYWViOC1iNWNkYzJlOTk2ZWMiLCJpYXQiOjE3MDc5NzU1NjIsImV4cCI6MTczOTUzMzE2Mn0.pi3BW7sIS65h5f-4v-LywOg8wqRVLwnSzu8Ul4ytPN0
reset gps timeoffset 19771
signalk server found 10.10.25.224:3000
signalk found ws://10.10.25.224:3000/signalk/v1/stream?subscribe=none
signalk connected to ws://10.10.25.224:3000/signalk/v1/stream?subscribe=none
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
gpsd timeout from lack of data
gpsd disconnected
reset gps timeoffset 19771
reset gps timeoffset 19771
gpsd connected
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
gpsd timeout from lack of data
gpsd disconnected
reset gps timeoffset 19771
reset gps timeoffset 19771
gpsd connected
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
gpsd timeout from lack of data
gpsd disconnected
reset gps timeoffset 19771
reset gps timeoffset 19771
gpsd connected
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
...

Thanks for reporting this.    pypilot didnt care about the gps timestamp until more recently, and there was an issue here.  I tried to improve this in git just now.

Are you running pypilot from the console directly?    Are you sure no other services are running?    It normally should be able to be killed with ctrl+c.  What terminal are you using?

I am sure, ps -ax  before I start it in command line.

pi@openplotter:~ $ ps -ax | grep pypilot
    330 ?        Ss    0:41 /usr/bin/python3 /usr/local/bin/pypilot_web 8000
196203 pts/2    S+    0:00 grep --color=auto pypilot

(2024-02-16, 08:09 AM)pxNav Wrote:
(2024-02-15, 05:50 PM)mgrouch Wrote:
(2024-02-15, 05:54 AM)partyvi Wrote: I had to install two additional packages to start pypiton (for now)  on RPI5 + OP4
sudo apt-get install python3-importlib-metadata
sudo apt install python3-flask-socketio



Pypilot - Looks working well, but i need to "friend" it to signalK, PLEASE HELP.
Pipilot_control - Looks working well. No issues found so far.
Pypilot_web - works well. No issues found so far.



pipilot_calibration  -- crashes with this traceback. Any ideas?

pi@openplotter:~ $ pypilot_calibration
Traceback (most recent call last):
  File "/usr/local/bin/pypilot_calibration", line 33, in <module>
    sys.exit(load_entry_point('pypilot==0.49', 'console_scripts', 'pypilot_calibration')())
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/pypilot/ui/autopilot_calibration.py", line 428, in main
    CalibrationDialog().ShowModal()
    ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/pypilot/ui/autopilot_calibration.py", line 29, in __init__
    super(CalibrationDialog, self).__init__(None)
  File "/usr/local/lib/python3.11/dist-packages/pypilot/ui/autopilot_control_ui.py", line 412, in __init__
    self.m_panel4.SetSizer( fgSizer22 )
wx._core.wxAssertionError: C++ assertion "CheckExpectedParentIs(w, m_containingWindow)" failed at ./src/common/sizer.cpp(887) in SetContainingWindow(): Windows managed by the sizer associated with the given window must have this window as parent, otherwise they will not be repositioned correctly.

Please use the window wxPanel@0xa083000 ("panel") with which this sizer is associated, as the parent when creating the window wxGLCanvas@0x9f4b800 ("GLCanvas") managed by it.
Exception ignored in: <function CalibrationDialogBase.__del__ at 0x7fff420936a0>
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/dist-packages/pypilot/ui/autopilot_control_ui.py", line 953, in __del__
    self.m_notebook.Unbind( wx.EVT_NOTEBOOK_PAGE_CHANGED, None )
  File "/usr/lib/python3/dist-packages/wx/core.py", line 1493, in _EvtHandler_Unbind
    return event.Unbind(self, id, id2, handler)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/wx/core.py", line 1562, in Unbind
    success += int(target.Disconnect(id1, id2, et, handler))
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: wrapped C/C++ object of type Notebook has been deleted

While you are waiting for OP. You can try released version of BBN where it works. 
https://github.com/bareboat-necessities/...24-02-12.1

Hi,

If you change line 405 a little bit from autopilot_control_ui.py file then it's start.

self.BoatPlot = wx.glcanvas.GLCanvas(self.m_panel3, attribList=[ wx.glcanvas.WX_GL_RGBA, wx.glcanvas.WX_GL_DOUBLEBUFFER, wx.glcanvas.WX_GL_DEPTH_SIZE, 16, wx.glcanvas.WX_GL_STENCIL_SIZE, 8, 0 ])

to

self.BoatPlot = wx.glcanvas.GLCanvas(self.m_panel4, attribList=[ wx.glcanvas.WX_GL_RGBA, wx.glcanvas.WX_GL_DOUBLEBUFFER, wx.glcanvas.WX_GL_DEPTH_SIZE, 16, wx.glcanvas.WX_GL_STENCIL_SIZE, 8, 0 ])

Looks like there is issue on controls / parents. 
Just now I can't test functionality because my Moitessier Hat (IMU) is broken. 

Thanks, calibration app it started and looks like works.

(2024-02-19, 04:38 AM)seandepagnier Wrote:
(2024-02-18, 02:52 PM)partyvi Wrote: one more interesting thing pypilot app hangs itself and terminal where it was open. at least i cant enter anything fro keyboard in it. if i close terminal and open other all ok.

what does the repeating line means? why pypilot teed to reset gps timeoffset?
imu rate set to rate 20
IMU all sensor axes verified
setting initial gyro bias [0.46, 0.05, -0.15]
reset gps timeoffset 19771
sensor found gps serial GN/dev/serial/by-path/platform-xhci-hcd.1-usb-0:2.1.1.1:1.0-port0 Sun Feb 18 07:45:20 2024
gpsd connected
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
calibration loaded, starting 122792
reset gps timeoffset 19771
signalk process 122802
signalkread token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiI1ZjVjMWQ1MC05MzU2LTQyYjQtYWViOC1iNWNkYzJlOTk2ZWMiLCJpYXQiOjE3MDc5NzU1NjIsImV4cCI6MTczOTUzMzE2Mn0.pi3BW7sIS65h5f-4v-LywOg8wqRVLwnSzu8Ul4ytPN0
reset gps timeoffset 19771
signalk server found 10.10.25.224:3000
signalk found ws://10.10.25.224:3000/signalk/v1/stream?subscribe=none
signalk connected to ws://10.10.25.224:3000/signalk/v1/stream?subscribe=none
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
gpsd timeout from lack of data
gpsd disconnected
reset gps timeoffset 19771
reset gps timeoffset 19771
gpsd connected
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
gpsd timeout from lack of data
gpsd disconnected
reset gps timeoffset 19771
reset gps timeoffset 19771
gpsd connected
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
gpsd timeout from lack of data
gpsd disconnected
reset gps timeoffset 19771
reset gps timeoffset 19771
gpsd connected
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
reset gps timeoffset 19771
...

Thanks for reporting this.    pypilot didnt care about the gps timestamp until more recently, and there was an issue here.  I tried to improve this in git just now.

Are you running pypilot from the console directly?    Are you sure no other services are running?    It normally should be able to be killed with ctrl+c.  What terminal are you using?
I have it crashed this way after about an hour.

a lot or "reset gps timeoffset" then 
reset gps timeoffset 19772
reset gps timeoffset 19772
reset gps timeoffset 19772
Traceback (most recent call last):
  File "/usr/local/bin/pypilot", line 33, in <module>
    sys.exit(load_entry_point('pypilot==0.49', 'console_scripts', 'pypilot')())
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/pypilot/autopilot.py", line 519, in main
    ap.iteration()
  File "/usr/local/lib/python3.11/dist-packages/pypilot/autopilot.py", line 385, in iteration
    self.compute_offsets()
  File "/usr/local/lib/python3.11/dist-packages/pypilot/autopilot.py", line 245, in compute_offsets
    self.gps_compass_offset.update(gps_track - compass, d)
  File "/usr/local/lib/python3.11/dist-packages/pypilot/values.py", line 116, in update
    offset = resolv(offset, self.value)
            ^^^^^^
NameError: name 'resolv' is not defined
Exception ignored in atexit callback: <function _exit_function at 0x7ffec284af20>
Traceback (most recent call last):
  File "/usr/lib/python3.11/multiprocessing/util.py", line 357, in _exit_function
    p.join()
  File "/usr/lib/python3.11/multiprocessing/process.py", line 149, in join
    res = self._popen.wait(timeout)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/multiprocessing/popen_fork.py", line 43, in wait
    return self.poll(os.WNOHANG if timeout == 0.0 else 0)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/multiprocessing/popen_fork.py", line 27, in poll
    pid, sts = os.waitpid(self.pid, flag)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/pypilot/autopilot.py", line 175, in cleanup
    pid = os.waitpid(-1, os.WNOHANG)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/pypilot/autopilot.py", line 193, in cleanup
    raise KeyboardInterrupt # to get backtrace on all processes
    ^^^^^^^^^^^^^^^^^^^^^^^
KeyboardInterrupt:
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)