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
Reduce steering when AP not active
#3
(2018-07-07, 06:34 PM)seandepagnier Wrote:
(2018-07-04, 01:22 PM)It Paradyske Wrote: Hi,

When the AP is not active, I can control the rod (I use a ST2000+ as actuator) with the arrow buttons.
However, one keypress already pushes the rod quit far out/in.
How can I reduce this distance that the rod travels?

regards
Hans

manual control could be improved.

This is using which control program?  The opencpn plugin or from the browser?

The source code needs to be changed to reduce this distance, it's easy to do.

Hi Sean,

It is both the web interface and the buttons.
Which files should I alter?
I am not very familiar with the Tiny Core Linux setup, I can alter the files like:
/usr/local/lib/python2.7/site-packages/lcd/client.py by copying the file it is linked to, to the link location,
however after reboot the linked file is there again. How can I make the changes persistent?

I am still waiting for an IMU, so am testing without it. but I encountered a bug there...
in
/usr/local/lib/python2.7/site/packages/lcd/client.py
the error message in fittext :
"compass or gyro failure!"
is not processed correctly

The client.py crashes and restarts,
the log file says:

2018-06-11_20:34:06.74833 fittext ERROR
2018-06-11_20:34:06.74837 compass or gyro failure! True 0
2018-06-11_20:34:06.74865 Traceback (most recent call last):
2018-06-11_20:34:06.74893   File "/usr/local/lib/python2.7/site-packages/lcd/client.py", line 1236, in <module>
2018-06-11_20:34:06.75153     main()
2018-06-11_20:34:06.75209   File "/usr/local/lib/python2.7/site-packages/lcd/client.py", line 1233, in main
2018-06-11_20:34:06.75784     idle()
2018-06-11_20:34:06.75845   File "/usr/local/lib/python2.7/site-packages/lcd/client.py", line 1194, in idle
2018-06-11_20:34:06.76091     lcdclient.display()
2018-06-11_20:34:06.76147   File "/usr/local/lib/python2.7/site-packages/lcd/client.py", line 903, in display
2018-06-11_20:34:06.76409     self.display_page()
2018-06-11_20:34:06.76468   File "/usr/local/lib/python2.7/site-packages/lcd/client.py", line 661, in display_control
2018-06-11_20:34:06.76621     self.fittext(r, _('ERROR\ncompass or gyro failure!'), True, black)
2018-06-11_20:34:06.76678   File "/usr/local/lib/python2.7/site-packages/lcd/client.py", line 463, in fittext
2018-06-11_20:34:06.76797     metrics = map(lambda word : (word, font.draw(self.surface, False, word, metric_size, self.bw)), words)
2018-06-11_20:34:06.76854   File "/usr/local/lib/python2.7/site-packages/lcd/client.py", line 463, in <lambda>
2018-06-11_20:34:06.76977     metrics = map(lambda word : (word, font.draw(self.surface, False, word, metric_size, self.bw)), words)
2018-06-11_20:34:06.77031   File "/usr/local/lib/python2.7/site-packages/lcd/font.py", line 60, in draw
2018-06-11_20:34:06.77085     font[c] = create_character(os.path.abspath(os.path.dirname(__file__)) + "/font.ttf", size, c, surface.bypp, crop, bw)
2018-06-11_20:34:06.77139   File "/usr/local/lib/python2.7/site-packages/lcd/font.py", line 85, in create_character
2018-06-11_20:34:06.77192     ifont = ImageFont.truetype(fontpath, size)
2018-06-11_20:34:06.77244   File "/usr/local/lib/python2.7/site-packages/PIL/ImageFont.py", line 239, in truetype
2018-06-11_20:34:06.77332     return FreeTypeFont(font, size, index, encoding)
2018-06-11_20:34:06.77438   File "/usr/local/lib/python2.7/site-packages/PIL/ImageFont.py", line 128, in __init__
2018-06-11_20:34:06.77503     self.font = core.getfont(font, size, index, encoding)
2018-06-11_20:34:06.77570 IOError: cannot open resource
~

I am running the image of 18062018
Reply


Messages In This Thread
RE: Reduce steering when AP not active and bugs - by It Paradyske - 2018-07-08, 08:31 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)