2020-12-04, 10:08 AM
I have been a long time user of Openplotter but have recently run into an issue that I am struggling with.
My problem is that the calibration program is not working for my IMU, which is a BerryIMU, it is an older version 1.6 but I have never had issues with it before.
I have previously been able to calibrate it using the PyPilot program, but after a recent fresh install of openplotter it has not been working. When I hit the calibration button on the PyPilot screen in (ver 2.2.1) nothing happens. I have also attempted to run pypilot_calibration from the terminal and it crashes, I will post the screen print below.
I have uninstalled and reinstalled PyPilot from the Openplotter settings screen but this did not help. I have done a lot of searching but cannot find a solution, any help solving this would be greatly apreciated.
Printout of pypilot_calibration messages:-
pi@openplotter:~ $ pypilot_calibration
Traceback (most recent call last):
File "/usr/local/bin/pypilot_calibration", line 11, in <module>
load_entry_point('pypilot==0.16', 'console_scripts', 'pypilot_calibration')()
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/ui/autopilot_calibration.py", line 427, in main
CalibrationDialog().ShowModal()
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/ui/autopilot_calibration.py", line 32, in __init__
super(CalibrationDialog, self).__init__(None)
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/ui/autopilot_control_ui.py", line 333, in __init__
self.m_panel4.Layout()
wx._core.wxAssertionError: C++ assertion "m_widget" failed at ../src/gtk/window.cpp(2857) in DoSetSize(): invalid window
Exception ignored in: <function CalibrationDialogBase.__del__ at 0xab04a810>
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/ui/autopilot_control_ui.py", line 837, in __del__
self.m_notebook.Unbind( wx.EVT_NOTEBOOK_PAGE_CHANGED, None )
File "/usr/lib/python3/dist-packages/wx/core.py", line 1416, in _EvtHandler_Unbind
return event.Unbind(self, id, id2, handler)
File "/usr/lib/python3/dist-packages/wx/core.py", line 1485, in Unbind
success += int(target.Disconnect(id1, id2, et, handler))
RuntimeError: wrapped C/C++ object of type Notebook has been deleted
My problem is that the calibration program is not working for my IMU, which is a BerryIMU, it is an older version 1.6 but I have never had issues with it before.
I have previously been able to calibrate it using the PyPilot program, but after a recent fresh install of openplotter it has not been working. When I hit the calibration button on the PyPilot screen in (ver 2.2.1) nothing happens. I have also attempted to run pypilot_calibration from the terminal and it crashes, I will post the screen print below.
I have uninstalled and reinstalled PyPilot from the Openplotter settings screen but this did not help. I have done a lot of searching but cannot find a solution, any help solving this would be greatly apreciated.
Printout of pypilot_calibration messages:-
pi@openplotter:~ $ pypilot_calibration
Traceback (most recent call last):
File "/usr/local/bin/pypilot_calibration", line 11, in <module>
load_entry_point('pypilot==0.16', 'console_scripts', 'pypilot_calibration')()
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/ui/autopilot_calibration.py", line 427, in main
CalibrationDialog().ShowModal()
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/ui/autopilot_calibration.py", line 32, in __init__
super(CalibrationDialog, self).__init__(None)
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/ui/autopilot_control_ui.py", line 333, in __init__
self.m_panel4.Layout()
wx._core.wxAssertionError: C++ assertion "m_widget" failed at ../src/gtk/window.cpp(2857) in DoSetSize(): invalid window
Exception ignored in: <function CalibrationDialogBase.__del__ at 0xab04a810>
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/ui/autopilot_control_ui.py", line 837, in __del__
self.m_notebook.Unbind( wx.EVT_NOTEBOOK_PAGE_CHANGED, None )
File "/usr/lib/python3/dist-packages/wx/core.py", line 1416, in _EvtHandler_Unbind
return event.Unbind(self, id, id2, handler)
File "/usr/lib/python3/dist-packages/wx/core.py", line 1485, in Unbind
success += int(target.Disconnect(id1, id2, et, handler))
RuntimeError: wrapped C/C++ object of type Notebook has been deleted