2019-08-08, 11:44 PM
I am trying to figure out how tacking work but looks like I have some general problem. But not sure how to troubleshoot what i lost.
Maybe problem that I have no rudder sensor, isn't?
Today I pulled and built and installed master branch pypilot/pypilot and pypilot/pypilot_pi.
In general pypilot works great but tacking functionality does strange things.
Several things are:
1)Attempt to activate button tack from any interface (LCD,GUI or openCPN plugin) when AP is active heading to lost connection to Pypilot server. only way to get connection back i found - restart from openplotter tab pypilot.
2) No reaction on tack button if it is not activated. Looks reasonable.
3) OpenCPN plugin shows configuration control, but in attempt to inc/dec any value values changing in between -1 to +1 or -0.1 to +0.1
any ideas?
Crash log is below;
Traceback (most recent call last):
File "/usr/local/bin/pypilot", line 11, in <module>
load_entry_point('pypilot==0.9', 'console_scripts', 'pypilot')()
File "/usr/local/lib/python2.7/dist-packages/pypilot-0.9-py2.7-linux-armv7l.egg/pypilot/autopilot.py", line 464, in main
ap.run()
File "/usr/local/lib/python2.7/dist-packages/pypilot-0.9-py2.7-linux-armv7l.egg/pypilot/autopilot.py", line 259, in run
self.iteration()
File "/usr/local/lib/python2.7/dist-packages/pypilot-0.9-py2.7-linux-armv7l.egg/pypilot/autopilot.py", line 418, in iteration
if not self.tack.process():
File "/usr/local/lib/python2.7/dist-packages/pypilot-0.9-py2.7-linux-armv7l.egg/pypilot/tacking.py", line 131, in process
headingrate = ap.boatimu.SensorValues['headingrate_lowpass'].value
Traceback (most recent call last):
File "/usr/local/bin/pypilot", line 11, in <module>
load_entry_point('pypilot==0.9', 'console_scripts', 'pypilot')()
File "/usr/local/lib/python2.7/dist-packages/pypilot-0.9-py2.7-linux-armv7l.egg/pypilot/autopilot.py", line 464, in main
ap.run()
File "/usr/local/lib/python2.7/dist-packages/pypilot-0.9-py2.7-linux-armv7l.egg/pypilot/autopilot.py", line 259, in run
self.iteration()
File "/usr/local/lib/python2.7/dist-packages/pypilot-0.9-py2.7-linux-armv7l.egg/pypilot/autopilot.py", line 418, in iteration
if not self.tack.process():
File "/usr/local/lib/python2.7/dist-packages/pypilot-0.9-py2.7-linux-armv7l.egg/pypilot/tacking.py", line 131, in process
headingrate = ap.boatimu.SensorValues['headingrate_lowpass'].value
NameError: global name 'ap' is not defined
Maybe problem that I have no rudder sensor, isn't?
Today I pulled and built and installed master branch pypilot/pypilot and pypilot/pypilot_pi.
In general pypilot works great but tacking functionality does strange things.
Several things are:
1)Attempt to activate button tack from any interface (LCD,GUI or openCPN plugin) when AP is active heading to lost connection to Pypilot server. only way to get connection back i found - restart from openplotter tab pypilot.
2) No reaction on tack button if it is not activated. Looks reasonable.
3) OpenCPN plugin shows configuration control, but in attempt to inc/dec any value values changing in between -1 to +1 or -0.1 to +0.1
any ideas?
Crash log is below;
Traceback (most recent call last):
File "/usr/local/bin/pypilot", line 11, in <module>
load_entry_point('pypilot==0.9', 'console_scripts', 'pypilot')()
File "/usr/local/lib/python2.7/dist-packages/pypilot-0.9-py2.7-linux-armv7l.egg/pypilot/autopilot.py", line 464, in main
ap.run()
File "/usr/local/lib/python2.7/dist-packages/pypilot-0.9-py2.7-linux-armv7l.egg/pypilot/autopilot.py", line 259, in run
self.iteration()
File "/usr/local/lib/python2.7/dist-packages/pypilot-0.9-py2.7-linux-armv7l.egg/pypilot/autopilot.py", line 418, in iteration
if not self.tack.process():
File "/usr/local/lib/python2.7/dist-packages/pypilot-0.9-py2.7-linux-armv7l.egg/pypilot/tacking.py", line 131, in process
headingrate = ap.boatimu.SensorValues['headingrate_lowpass'].value
Traceback (most recent call last):
File "/usr/local/bin/pypilot", line 11, in <module>
load_entry_point('pypilot==0.9', 'console_scripts', 'pypilot')()
File "/usr/local/lib/python2.7/dist-packages/pypilot-0.9-py2.7-linux-armv7l.egg/pypilot/autopilot.py", line 464, in main
ap.run()
File "/usr/local/lib/python2.7/dist-packages/pypilot-0.9-py2.7-linux-armv7l.egg/pypilot/autopilot.py", line 259, in run
self.iteration()
File "/usr/local/lib/python2.7/dist-packages/pypilot-0.9-py2.7-linux-armv7l.egg/pypilot/autopilot.py", line 418, in iteration
if not self.tack.process():
File "/usr/local/lib/python2.7/dist-packages/pypilot-0.9-py2.7-linux-armv7l.egg/pypilot/tacking.py", line 131, in process
headingrate = ap.boatimu.SensorValues['headingrate_lowpass'].value
NameError: global name 'ap' is not defined